haskell-relational-record/examples/HDBC/PostgreSQL/example/4/create.sql
2017-01-28 16:25:51 +09:00

17 lines
282 B
SQL

CREATE SCHEMA EXAMPLE4;
CREATE TABLE EXAMPLE4.one (
seq SERIAL NOT NULL,
data INTEGER NOT NULL,
PRIMARY KEY (seq)
);
CREATE TABLE EXAMPLE4.stock_goods (
seq INTEGER NOT NULL,
name VARCHAR(30) NOT NULL,
unit INTEGER NOT NULL,
amount INTEGER NOT NULL,
PRIMARY KEY(seq)
);