Add create_table_public.authors.sql
This commit is contained in:
parent
0974fc9f63
commit
760303a9b9
16
create_table_public.authors.sql
Normal file
16
create_table_public.authors.sql
Normal 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;
|
||||||
Loading…
x
Reference in New Issue
Block a user