Skip to content

Commit

Permalink
chore: workerization complete
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsley-einstein committed Nov 10, 2024
1 parent c9762d2 commit eaea55d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions supabase/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
project_id = "permit-module"

[api]
# enabled = true
enabled = true
# Port to use for the API URL.
# port = 54321
port = 54321
# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API
# endpoints. public and storage are always included.
schemas = ["public", "storage", "graphql_public"]
Expand All @@ -17,7 +17,7 @@ max_rows = 1000

[db]
# Port to use for the local database URL.
# port = 54322
port = 54322
# Port used by db diff command to initialize the shadow database.
shadow_port = 54320
# The database major version to use. This has to be the same as your remote database's. Run `SHOW
Expand Down
10 changes: 5 additions & 5 deletions supabase/migrations/20240321140807_init.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
CREATE TABLE IF NOT EXISTS users (
id BIGINT PRIMARY KEY,
username VARCHAR(255) UNIQUE NOT NULL,
created_at DATE DEFAULT CURRENT_TIMESTAMP,
updated_at DATE DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL
);

CREATE TABLE IF NOT EXISTS wallets (
wallet_id SERIAL PRIMARY KEY,
user_id BIGINT NOT NULL,
address VARCHAR(255) UNIQUE NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(id)
github_user_id BIGINT NOT NULL,
wallet_address VARCHAR(255) UNIQUE NOT NULL,
FOREIGN KEY (github_user_id) REFERENCES github_users(id)
ON DELETE CASCADE
);

0 comments on commit eaea55d

Please sign in to comment.