Skip to content

Commit

Permalink
Location Price (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaanqui authored Apr 26, 2024
1 parent 0be1ebf commit 178bb9d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions database/jet/postgres/public/model/location.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions database/jet/postgres/public/table/location.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions database/migrations/1713285977756190_location_price.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE "location"
ADD COLUMN "price" BIGINT NOT NULL DEFAULT 0;

ALTER TABLE "location"
ADD COLUMN "currency" VARCHAR(3) REFERENCES "currency"("currency_code") NOT NULL DEFAULT 'USD';

0 comments on commit 178bb9d

Please sign in to comment.