generated from alecodes/base-template
feat: add database service as dev dependency
This commit is contained in:
parent
5362d2ba30
commit
ca2ea91976
9 changed files with 1047 additions and 0 deletions
15
db/migrations/20250206220324_create_logic_groups_table.sql
Normal file
15
db/migrations/20250206220324_create_logic_groups_table.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- migrate:up
|
||||
CREATE TABLE public.logic_groups (
|
||||
id serial PRIMARY KEY,
|
||||
name character varying(20) NOT NULL,
|
||||
uid character varying(8) NOT NULL,
|
||||
uri character varying,
|
||||
source_id int,
|
||||
created_at timestamp WITH time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
updated_at timestamp WITH time zone,
|
||||
deleted_at timestamp WITH time zone,
|
||||
CONSTRAINT fk_source FOREIGN KEY (source_id) REFERENCES public.sources(id)
|
||||
);
|
||||
|
||||
-- migrate:down
|
||||
DROP TABLE public.logic_groups;
|
||||
Loading…
Add table
Add a link
Reference in a new issue