@@ -20,23 +20,24 @@ drop sequence if exists test_pilot.items_id_seq;
2020create sequence test_pilot.items_id_seq as bigint;
2121
2222create table test_pilot.items (
23- id bigint primary key default nextval('test_pilot.items_id_seq'::regclass),
24- email text not null,
25- status text not null,
26- data jsonb,
27- created_at timestamptz not null default now(),
28- amount numeric(12,2) not null default 0,
29- category integer not null default 0,
23+ id bigint primary key default nextval('test_pilot.items_id_seq'::regclass),
24+ email text not null,
25+ status text not null,
26+ data jsonb,
27+ created_at timestamptz not null default now(),
28+ amount numeric(12,2) not null default 0,
29+ category integer not null default 0,
3030 updated_at timestamptz
3131);
3232
3333alter sequence test_pilot.items_id_seq owned by test_pilot.items.id;
3434
35- create index items_category_idx on test_pilot.items(category);
36- create index items_status_idx on test_pilot.items(status);
37- create index items_created_at_idx on test_pilot.items(created_at);
38- create index items_email_idx on test_pilot.items(email);
39- create index idx_items_data_gin on test_pilot.items using gin (data);
35+ create index items_updated_at_idx on test_pilot.items(updated_at);
36+ create index items_category_idx on test_pilot.items(category);
37+ create index items_status_idx on test_pilot.items(status);
38+ create index items_created_at_idx on test_pilot.items(created_at);
39+ create index items_email_idx on test_pilot.items(email);
40+ create index idx_items_data_gin on test_pilot.items using gin (data);
4041
4142insert into test_pilot.items (email, status, data, created_at, amount, category, updated_at)
4243select
0 commit comments