compendium/db/migrations/20250205190533_create_sources_table.sql

13 lines
390 B
SQL

-- migrate:up
CREATE TABLE public.sources (
id serial PRIMARY KEY,
name character varying(20) NOT NULL,
uid character varying(8) NOT NULL,
uri character varying,
created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp with time zone,
deleted_at timestamp with time zone
);
-- migrate:down
DROP TABLE public.sources;