-
Notifications
You must be signed in to change notification settings - Fork 1
/
info.sql
1639 lines (1103 loc) · 37.5 KB
/
info.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- From the Unicenta OPOS project.
-- Licensed under the GNU General Public License version 3
-- See the licenses/gpl3.txt included
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: applications; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE applications (
id character varying NOT NULL,
name character varying NOT NULL,
version character varying NOT NULL
);
ALTER TABLE public.applications OWNER TO chris;
--
-- Name: attribute; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attribute (
id character varying NOT NULL,
name character varying NOT NULL
);
ALTER TABLE public.attribute OWNER TO chris;
--
-- Name: attributeinstance; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attributeinstance (
id character varying NOT NULL,
attributesetinstance_id character varying NOT NULL,
attribute_id character varying NOT NULL,
value character varying
);
ALTER TABLE public.attributeinstance OWNER TO chris;
--
-- Name: attributeset; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attributeset (
id character varying NOT NULL,
name character varying NOT NULL
);
ALTER TABLE public.attributeset OWNER TO chris;
--
-- Name: attributesetinstance; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attributesetinstance (
id character varying NOT NULL,
attributeset_id character varying NOT NULL,
description character varying
);
ALTER TABLE public.attributesetinstance OWNER TO chris;
--
-- Name: attributeuse; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attributeuse (
id character varying NOT NULL,
attributeset_id character varying NOT NULL,
attribute_id character varying NOT NULL,
lineno integer
);
ALTER TABLE public.attributeuse OWNER TO chris;
--
-- Name: attributevalue; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE attributevalue (
id character varying NOT NULL,
attribute_id character varying NOT NULL,
value character varying
);
ALTER TABLE public.attributevalue OWNER TO chris;
--
-- Name: breaks; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE breaks (
id character varying NOT NULL,
name character varying NOT NULL,
notes character varying,
visible boolean NOT NULL
);
ALTER TABLE public.breaks OWNER TO chris;
--
-- Name: categories; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE categories (
id character varying NOT NULL,
name character varying NOT NULL,
parentid character varying,
image bytea,
texttip character varying,
catshowname boolean DEFAULT true NOT NULL
);
ALTER TABLE public.categories OWNER TO chris;
--
-- Name: closedcash; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE closedcash (
money character varying NOT NULL,
host character varying NOT NULL,
hostsequence integer NOT NULL,
datestart timestamp without time zone NOT NULL,
dateend timestamp without time zone,
nosales integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.closedcash OWNER TO chris;
--
-- Name: csvimport; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE csvimport (
id character varying NOT NULL,
rownumber character varying,
csverror character varying,
reference character varying,
code character varying,
name character varying,
pricebuy double precision,
pricesell double precision,
previousbuy double precision,
previoussell double precision,
category character varying
);
ALTER TABLE public.csvimport OWNER TO chris;
--
-- Name: customers; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE customers (
id character varying NOT NULL,
searchkey character varying NOT NULL,
taxid character varying,
name character varying NOT NULL,
taxcategory character varying,
card character varying,
maxdebt double precision DEFAULT 0 NOT NULL,
address character varying,
address2 character varying,
postal character varying,
city character varying,
region character varying,
country character varying,
firstname character varying,
lastname character varying,
email character varying,
phone character varying,
phone2 character varying,
fax character varying,
notes character varying,
visible boolean DEFAULT true NOT NULL,
curdate timestamp without time zone,
curdebt double precision DEFAULT 0,
image bytea
);
ALTER TABLE public.customers OWNER TO chris;
--
-- Name: draweropened; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE draweropened (
opendate timestamp without time zone DEFAULT now(),
name character varying,
ticketid character varying
);
ALTER TABLE public.draweropened OWNER TO chris;
--
-- Name: floors; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE floors (
id character varying NOT NULL,
name character varying NOT NULL,
image bytea
);
ALTER TABLE public.floors OWNER TO chris;
--
-- Name: leaves; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE leaves (
id character varying NOT NULL,
pplid character varying NOT NULL,
name character varying NOT NULL,
startdate timestamp without time zone NOT NULL,
enddate timestamp without time zone NOT NULL,
notes character varying
);
ALTER TABLE public.leaves OWNER TO chris;
--
-- Name: lineremoved; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE lineremoved (
removeddate timestamp without time zone DEFAULT now() NOT NULL,
name character varying,
ticketid character varying,
productid character varying,
productname character varying,
units double precision NOT NULL
);
ALTER TABLE public.lineremoved OWNER TO chris;
--
-- Name: locations; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE locations (
id character varying NOT NULL,
name character varying NOT NULL,
address character varying
);
ALTER TABLE public.locations OWNER TO chris;
--
-- Name: moorers; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE moorers (
vesselname character varying,
size integer,
days integer,
power boolean DEFAULT false NOT NULL
);
ALTER TABLE public.moorers OWNER TO chris;
--
-- Name: payments; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE payments (
id character varying NOT NULL,
receipt character varying NOT NULL,
payment character varying NOT NULL,
total double precision NOT NULL,
transid character varying,
notes character varying,
returnmsg bytea,
tendered double precision DEFAULT 0 NOT NULL,
cardname character varying
);
ALTER TABLE public.payments OWNER TO chris;
--
-- Name: people; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE people (
id character varying NOT NULL,
name character varying NOT NULL,
apppassword character varying,
card character varying,
role character varying NOT NULL,
visible boolean NOT NULL,
image bytea
);
ALTER TABLE public.people OWNER TO chris;
--
-- Name: pickup_number; Type: SEQUENCE; Schema: public; Owner: chris
--
CREATE SEQUENCE pickup_number
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.pickup_number OWNER TO chris;
--
-- Name: places; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE places (
id character varying NOT NULL,
name character varying NOT NULL,
x integer NOT NULL,
y integer NOT NULL,
floor character varying NOT NULL,
customer character varying,
waiter character varying,
ticketid character varying,
tablemoved boolean DEFAULT false NOT NULL
);
ALTER TABLE public.places OWNER TO chris;
--
-- Name: products; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE products (
id character varying NOT NULL,
reference character varying NOT NULL,
code character varying NOT NULL,
codetype character varying,
name character varying NOT NULL,
pricebuy double precision DEFAULT 0 NOT NULL,
pricesell double precision DEFAULT 0 NOT NULL,
category character varying NOT NULL,
taxcat character varying NOT NULL,
attributeset_id character varying,
stockcost double precision,
stockvolume double precision,
image bytea,
iscom boolean DEFAULT false NOT NULL,
isscale boolean DEFAULT false NOT NULL,
iskitchen boolean DEFAULT false NOT NULL,
printkb boolean DEFAULT false NOT NULL,
sendstatus boolean DEFAULT false NOT NULL,
isservice boolean DEFAULT false NOT NULL,
display character varying,
attributes bytea,
isvprice boolean DEFAULT false NOT NULL,
isverpatrib boolean DEFAULT false NOT NULL,
texttip character varying DEFAULT ''::character varying,
warranty boolean DEFAULT false NOT NULL
);
ALTER TABLE public.products OWNER TO chris;
--
-- Name: products_cat; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE products_cat (
product character varying NOT NULL,
catorder integer
);
ALTER TABLE public.products_cat OWNER TO chris;
--
-- Name: products_com; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE products_com (
id character varying NOT NULL,
product character varying NOT NULL,
product2 character varying NOT NULL
);
ALTER TABLE public.products_com OWNER TO chris;
--
-- Name: receipts; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE receipts (
id character varying NOT NULL,
money character varying NOT NULL,
datenew timestamp without time zone NOT NULL,
attributes bytea,
person character varying
);
ALTER TABLE public.receipts OWNER TO chris;
--
-- Name: reservation_customers; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE reservation_customers (
id character varying NOT NULL,
customer character varying NOT NULL
);
ALTER TABLE public.reservation_customers OWNER TO chris;
--
-- Name: reservations; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE reservations (
id character varying NOT NULL,
created timestamp without time zone NOT NULL,
datenew timestamp without time zone DEFAULT '2013-01-01 00:00:00'::timestamp without time zone NOT NULL,
title character varying NOT NULL,
chairs integer NOT NULL,
isdone boolean NOT NULL,
description character varying
);
ALTER TABLE public.reservations OWNER TO chris;
--
-- Name: resources; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE resources (
id character varying NOT NULL,
name character varying NOT NULL,
restype integer NOT NULL,
content bytea
);
ALTER TABLE public.resources OWNER TO chris;
--
-- Name: roles; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE roles (
id character varying NOT NULL,
name character varying NOT NULL,
permissions bytea
);
ALTER TABLE public.roles OWNER TO chris;
--
-- Name: sharedtickets; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE sharedtickets (
id character varying NOT NULL,
name character varying NOT NULL,
content bytea,
pickupid integer DEFAULT 0 NOT NULL,
appuser character varying
);
ALTER TABLE public.sharedtickets OWNER TO chris;
--
-- Name: shift_breaks; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE shift_breaks (
id character varying NOT NULL,
shiftid character varying NOT NULL,
breakid character varying NOT NULL,
starttime timestamp without time zone NOT NULL,
endtime timestamp without time zone
);
ALTER TABLE public.shift_breaks OWNER TO chris;
--
-- Name: shifts; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE shifts (
id character varying NOT NULL,
startshift timestamp without time zone NOT NULL,
endshift timestamp without time zone,
pplid character varying NOT NULL
);
ALTER TABLE public.shifts OWNER TO chris;
--
-- Name: stockcurrent; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE stockcurrent (
location character varying NOT NULL,
product character varying NOT NULL,
attributesetinstance_id character varying,
units double precision DEFAULT 0 NOT NULL
);
ALTER TABLE public.stockcurrent OWNER TO chris;
--
-- Name: stockdiary; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE stockdiary (
id character varying NOT NULL,
datenew timestamp without time zone NOT NULL,
reason integer NOT NULL,
location character varying NOT NULL,
product character varying NOT NULL,
attributesetinstance_id character varying,
units double precision NOT NULL,
price double precision NOT NULL,
appuser character varying
);
ALTER TABLE public.stockdiary OWNER TO chris;
--
-- Name: stocklevel; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE stocklevel (
id character varying NOT NULL,
location character varying NOT NULL,
product character varying NOT NULL,
stocksecurity double precision DEFAULT 0 NOT NULL,
stockmaximum double precision DEFAULT 0 NOT NULL
);
ALTER TABLE public.stocklevel OWNER TO chris;
--
-- Name: taxcategories; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE taxcategories (
id character varying NOT NULL,
name character varying NOT NULL
);
ALTER TABLE public.taxcategories OWNER TO chris;
--
-- Name: taxcustcategories; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE taxcustcategories (
id character varying NOT NULL,
name character varying NOT NULL
);
ALTER TABLE public.taxcustcategories OWNER TO chris;
--
-- Name: taxes; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE taxes (
id character varying NOT NULL,
name character varying NOT NULL,
category character varying NOT NULL,
custcategory character varying,
parentid character varying,
rate double precision DEFAULT 0 NOT NULL,
ratecascade boolean DEFAULT false NOT NULL,
rateorder integer
);
ALTER TABLE public.taxes OWNER TO chris;
--
-- Name: taxlines; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE taxlines (
id character varying NOT NULL,
receipt character varying NOT NULL,
taxid character varying NOT NULL,
base double precision DEFAULT 0 NOT NULL,
amount double precision DEFAULT 0 NOT NULL
);
ALTER TABLE public.taxlines OWNER TO chris;
--
-- Name: thirdparties; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE thirdparties (
id character varying NOT NULL,
cif character varying NOT NULL,
name character varying NOT NULL,
address character varying,
contactcomm character varying,
contactfact character varying,
payrule character varying,
faxnumber character varying,
phonenumber character varying,
mobilenumber character varying,
email character varying,
webpage character varying,
notes character varying
);
ALTER TABLE public.thirdparties OWNER TO chris;
--
-- Name: ticketlines; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE ticketlines (
ticket character varying NOT NULL,
line integer NOT NULL,
product character varying,
attributesetinstance_id character varying,
units double precision NOT NULL,
price double precision NOT NULL,
taxid character varying NOT NULL,
attributes bytea
);
ALTER TABLE public.ticketlines OWNER TO chris;
--
-- Name: tickets; Type: TABLE; Schema: public; Owner: chris; Tablespace:
--
CREATE TABLE tickets (
id character varying NOT NULL,
tickettype integer DEFAULT 0 NOT NULL,
ticketid integer NOT NULL,
person character varying NOT NULL,
customer character varying,
status integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.tickets OWNER TO chris;
--
-- Name: ticketsnum; Type: SEQUENCE; Schema: public; Owner: chris
--
CREATE SEQUENCE ticketsnum
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ticketsnum OWNER TO chris;
--
-- Name: ticketsnum_payment; Type: SEQUENCE; Schema: public; Owner: chris
--
CREATE SEQUENCE ticketsnum_payment
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ticketsnum_payment OWNER TO chris;
--
-- Name: ticketsnum_refund; Type: SEQUENCE; Schema: public; Owner: chris
--
CREATE SEQUENCE ticketsnum_refund
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ticketsnum_refund OWNER TO chris;
--
-- Name: applications_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY applications
ADD CONSTRAINT applications_pkey PRIMARY KEY (id);
--
-- Name: attribute_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attribute
ADD CONSTRAINT attribute_pkey PRIMARY KEY (id);
--
-- Name: attributeinstance_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attributeinstance
ADD CONSTRAINT attributeinstance_pkey PRIMARY KEY (id);
--
-- Name: attributeset_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attributeset
ADD CONSTRAINT attributeset_pkey PRIMARY KEY (id);
--
-- Name: attributesetinstance_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attributesetinstance
ADD CONSTRAINT attributesetinstance_pkey PRIMARY KEY (id);
--
-- Name: attributeuse_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attributeuse
ADD CONSTRAINT attributeuse_pkey PRIMARY KEY (id);
--
-- Name: attributevalue_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY attributevalue
ADD CONSTRAINT attributevalue_pkey PRIMARY KEY (id);
--
-- Name: breaks_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY breaks
ADD CONSTRAINT breaks_pkey PRIMARY KEY (id);
--
-- Name: categories_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY categories
ADD CONSTRAINT categories_pkey PRIMARY KEY (id);
--
-- Name: closedcash_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY closedcash
ADD CONSTRAINT closedcash_pkey PRIMARY KEY (money);
--
-- Name: csvimport_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY csvimport
ADD CONSTRAINT csvimport_pkey PRIMARY KEY (id);
--
-- Name: customers_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY customers
ADD CONSTRAINT customers_pkey PRIMARY KEY (id);
--
-- Name: floors_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY floors
ADD CONSTRAINT floors_pkey PRIMARY KEY (id);
--
-- Name: leaves_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY leaves
ADD CONSTRAINT leaves_pkey PRIMARY KEY (id);
--
-- Name: locations_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY locations
ADD CONSTRAINT locations_pkey PRIMARY KEY (id);
--
-- Name: payments_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY payments
ADD CONSTRAINT payments_pkey PRIMARY KEY (id);
--
-- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY people
ADD CONSTRAINT people_pkey PRIMARY KEY (id);
--
-- Name: places_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY places
ADD CONSTRAINT places_pkey PRIMARY KEY (id);
--
-- Name: products_cat_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY products_cat
ADD CONSTRAINT products_cat_pkey PRIMARY KEY (product);
--
-- Name: products_com_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY products_com
ADD CONSTRAINT products_com_pkey PRIMARY KEY (id);
--
-- Name: products_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY products
ADD CONSTRAINT products_pkey PRIMARY KEY (id);
--
-- Name: receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY receipts
ADD CONSTRAINT receipts_pkey PRIMARY KEY (id);
--
-- Name: reservation_customers_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY reservation_customers
ADD CONSTRAINT reservation_customers_pkey PRIMARY KEY (id);
--
-- Name: reservations_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY reservations
ADD CONSTRAINT reservations_pkey PRIMARY KEY (id);
--
-- Name: resources_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY resources
ADD CONSTRAINT resources_pkey PRIMARY KEY (id);
--
-- Name: roles_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY roles
ADD CONSTRAINT roles_pkey PRIMARY KEY (id);
--
-- Name: sharedtickets_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY sharedtickets
ADD CONSTRAINT sharedtickets_pkey PRIMARY KEY (id);
--
-- Name: shift_breaks_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY shift_breaks
ADD CONSTRAINT shift_breaks_pkey PRIMARY KEY (id);
--
-- Name: shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY shifts
ADD CONSTRAINT shifts_pkey PRIMARY KEY (id);
--
-- Name: stockdiary_pkey; Type: CONSTRAINT; Schema: public; Owner: chris; Tablespace:
--
ALTER TABLE ONLY stockdiary
ADD CONSTRAINT stockdiary_pkey PRIMARY KEY (id);