From 760303a9b9ee183877cd2cf5ae9ab6ab0ae51e86 Mon Sep 17 00:00:00 2001 From: pashko Date: Fri, 14 Feb 2025 16:40:51 +0800 Subject: [PATCH] Add create_table_public.authors.sql --- create_table_public.authors.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 create_table_public.authors.sql diff --git a/create_table_public.authors.sql b/create_table_public.authors.sql new file mode 100644 index 0000000..8f2f77d --- /dev/null +++ b/create_table_public.authors.sql @@ -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;