mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-12 12:55:36 +02:00
add home page
This commit is contained in:
parent
0dc058749d
commit
a3978f17c4
11 changed files with 346 additions and 16 deletions
|
@ -59,6 +59,17 @@ export async function initializePostgres() {
|
|||
referrer TEXT
|
||||
);
|
||||
`,
|
||||
|
||||
sql`
|
||||
CREATE TABLE IF NOT EXISTS sites (
|
||||
site_id SERIAL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
domain TEXT NOT NULL UNIQUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
created_by TEXT NOT NULL REFERENCES "user" ("id")
|
||||
);
|
||||
`,
|
||||
]);
|
||||
|
||||
// Phase 2: Create tables with foreign key dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue