Skip to content

Commit

Permalink
feat: change column in deals table
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikzita committed Jan 13, 2024
1 parent 6701363 commit 70512db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified sqlite.db
Binary file not shown.
2 changes: 1 addition & 1 deletion src/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const users = sqliteTable("users", {
});

export const deals = sqliteTable("deal", {
id: text("id").primaryKey(),
id: integer("id", { mode: "number" }).primaryKey({ autoIncrement: true }),
title: text("title"),
description: text("description"),
isActive: integer("isActive", { mode: "boolean" }),
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/schema/deals/deals.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ObjectType, Field, ID } from "type-graphql";
import { ObjectType, Field } from "type-graphql";

@ObjectType({ description: "Deal Object" })
export class Deal {
@Field()
id: string;
id: number;
@Field()
title: string;
@Field()
description: string;
@Field()
@Field({ nullable: true })
isActive: boolean;
}

Expand Down

0 comments on commit 70512db

Please sign in to comment.