Add create_table_public.authors.sql

This commit is contained in:
pashko 2025-02-14 16:40:51 +08:00
parent 0974fc9f63
commit 760303a9b9

View File

@ -0,0 +1,16 @@
-- Table: public.authors
-- DROP TABLE IF EXISTS public.authors;
CREATE TABLE IF NOT EXISTS public.authors
(
author_id integer NOT NULL DEFAULT nextval('authors_author_id_seq'::regclass),
name character varying(100) COLLATE pg_catalog."default" NOT NULL,
email character varying(100) COLLATE pg_catalog."default",
CONSTRAINT authors_pkey PRIMARY KEY (author_id)
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public.authors
OWNER to dbuser01;