mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 14:45:51 +03:00
18 lines
329 B
SQL
18 lines
329 B
SQL
|
|
CREATE SCHEMA IF NOT EXISTS EXAMPLE;
|
|
|
|
CREATE TABLE EXAMPLE.person
|
|
( name VARCHAR(64) NOT NULL
|
|
, age INTEGER NOT NULL
|
|
, family VARCHAR(64) NOT NULL
|
|
|
|
, PRIMARY KEY(name)
|
|
);
|
|
|
|
CREATE TABLE EXAMPLE.birthday
|
|
( name VARCHAR(64) NOT NULL
|
|
, day DATE NOT NULL
|
|
|
|
, PRIMARY KEY(name)
|
|
);
|