init
This commit is contained in:
10
template/services/api/db/migrations/20260404121052_init.sql
Normal file
10
template/services/api/db/migrations/20260404121052_init.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- migrate:up
|
||||
CREATE TABLE todo (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
task VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
done bool DEFAULT false
|
||||
);
|
||||
-- migrate:down
|
||||
DROP TABLE todo;
|
||||
Reference in New Issue
Block a user