initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user