feat: auth/stars API, collections and publish routes, star/author migrations
This commit is contained in:
parent
43cf0e277d
commit
65820d4ef9
43 changed files with 2008 additions and 408 deletions
6
indexium-backend/migrations/20260909000000_stars.sql
Normal file
6
indexium-backend/migrations/20260909000000_stars.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
CREATE TABLE stars (
|
||||
github_id BIGINT,
|
||||
mod_id UUID REFERENCES mods(id) ON DELETE CASCADE,
|
||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
PRIMARY KEY (github_id, mod_id)
|
||||
);
|
||||
6
indexium-backend/migrations/20260909000001_authors.sql
Normal file
6
indexium-backend/migrations/20260909000001_authors.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
CREATE TABLE IF NOT EXISTS authors (
|
||||
github_id BIGINT PRIMARY KEY,
|
||||
login VARCHAR(39) NOT NULL UNIQUE,
|
||||
avatar_url TEXT,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue