Shelf/migrations/sqls/20220514223735-books-table-up.sql

8 lines
195 B
SQL

/* Replace with your SQL commands */
CREATE TABLE products (
id SERIAL PRIMARY KEY,
title VARCHAR(150),
author VARCHAR(255),
pages integer not null,
price integer not null
);