Skip to content

Commit

Permalink
updated db schema
Browse files Browse the repository at this point in the history
  • Loading branch information
huzaifa-99 committed Jan 17, 2023
1 parent 9b9ed92 commit 37a336c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/src/db/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const init = async (): Promise<QueryResult<any>> => {
material_type media_type_enums NOT NULL,
recognition_id UUID UNIQUE,
author_id UUID NOT NULL,
is_draft bool default false,
is_claimable bool default true,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
CONSTRAINT recognition_id
Expand All @@ -128,6 +129,7 @@ const init = async (): Promise<QueryResult<any>> => {
is_claimable bool default true,
ipfs_hash character varying,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
is_onchain bool default false,
CONSTRAINT author_id
FOREIGN KEY(author_id)
REFERENCES users(user_id)
Expand Down

0 comments on commit 37a336c

Please sign in to comment.