17 lines
514 B
SQL
17 lines
514 B
SQL
create table if not exists inventory (
|
|
id serial primary key,
|
|
sku text not null unique,
|
|
name text not null,
|
|
quantity integer not null,
|
|
location text not null,
|
|
updated_at timestamptz not null default now()
|
|
);
|
|
|
|
alter table inventory replica identity full;
|
|
|
|
insert into inventory (sku, name, quantity, location) values
|
|
('FL-100', 'Archive label rolls', 12, 'Torshavn'),
|
|
('FL-220', 'Scanner cleaning kit', 7, 'Klaksvik'),
|
|
('FL-330', 'Cold storage boxes', 18, 'Runavik')
|
|
on conflict (sku) do nothing;
|