inventory-system/migrations/2022-07-23-163034_create_containers/up.sql

12 lines
262 B
SQL

-- Your SQL goes here
create table containers
(
id uuid default gen_random_uuid() not null
primary key,
parent uuid
constraint foreign_key_name
references containers,
name varchar not null
);