File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ alter table companies
2929 add constraint companies_pkey
3030 primary key (id);
3131
32- alter table companies
33- add constraint companies_address_id_key
34- unique (address_id);
35-
3632alter table companies
3733 add constraint companies_cnpj_key
3834 unique (cnpj);
@@ -127,14 +123,6 @@ alter table event_configurations
127123 add constraint fk33jpq0j7g5hn9x03pi9y8qh5q
128124 foreign key (event_id) references events;
129125
130- alter table events
131- add constraint events_address_id_key
132- unique (address_id);
133-
134- alter table events
135- add constraint events_event_thumbnail_id_key
136- unique (event_thumbnail_id);
137-
138126alter table events
139127 add constraint fkquc7xx27bo60lupj2rf7e0hn2
140128 foreign key (address_id) references addresses;
@@ -178,10 +166,6 @@ alter table order_items
178166 add constraint order_items_pkey
179167 primary key (id);
180168
181- alter table order_items
182- add constraint order_items_ticket_id_key
183- unique (ticket_id);
184-
185169create table orders
186170(
187171 birth_date date not null ,
@@ -205,10 +189,6 @@ alter table order_items
205189 add constraint fkbioxgbv59vetrxe0ejfubep1w
206190 foreign key (order_id) references orders;
207191
208- alter table orders
209- add constraint orders_customer_id_key
210- unique (customer_id);
211-
212192alter table orders
213193 add constraint orders_status_check
214194 check ((status >= 0 ) AND (status <= 5 ));
You can’t perform that action at this time.
0 commit comments