refactor!: change migration tool to sqlx

This commit is contained in:
Alexander Navarro 2025-04-15 15:18:20 -04:00
parent 27037a9f75
commit 49c8682164
15 changed files with 30 additions and 894 deletions

View file

@ -0,0 +1,12 @@
-- Add up migration script here
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)
);