12 lines
No EOL
305 B
SQL
12 lines
No EOL
305 B
SQL
CREATE TABLE bots (
|
|
id serial PRIMARY KEY,
|
|
owner_id integer REFERENCES users(id),
|
|
name text UNIQUE NOT NULL
|
|
);
|
|
|
|
CREATE TABLE code_bundles (
|
|
id serial PRIMARY KEY,
|
|
bot_id integer REFERENCES bots(id),
|
|
path text NOT NULL,
|
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
); |