Shelf/migrations/sqls/20220519015830-shelf-up.sql
2022-05-20 00:38:28 +02:00

14 lines
352 B
SQL

CREATE TABLE products (
id SERIAL PRIMARY KEY,
name VARCHAR(250) NOT NULL,
price INTEGER NOT NULL
);
CREATE TABLE users (
id SERIAL PRIMARY KEY,
firstName VARCHAR(250) NOT NULL,
lastName VARCHAR(250) NOT NULL,
username VARCHAR(250) NOT NULL,
password_digest VARCHAR(250) NOT NULL
);