-- Data for Name: greetings; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.greetings (id, description) FROM stdin;
\.


--
-- Data for Name: history_erp; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.history_erp (id, trans_id, employee_id, addition, what_done, itime, snumbers) FROM stdin;
1021	1020	938	SAVED	\N	2012-08-17 12:59:39.007856	projectnumber_01-2012
1023	1022	938	SAVED	\N	2012-08-17 13:03:43.327594	vendornumber_70000
1025	1024	938	SAVED	\N	2012-08-17 13:07:12.472687	vendornumber_70001
1026	1024	938	SAVED	\N	2012-08-17 13:07:36.350384	vendornumber_70001
1027	1024	938	SAVED	\N	2012-08-17 13:08:13.446427	vendornumber_70001
1029	1028	938	SAVED	\N	2012-08-17 13:10:07.955481	vendornumber_70003
1031	1030	938	SAVED	\N	2012-08-17 13:12:56.559407	vendornumber_70002
1033	1032	938	SAVED	\N	2012-08-20 10:25:33.706282	vendornumber_70004
1034	1032	938	SAVED	\N	2012-08-20 10:25:36.685666	vendornumber_70004
1036	1035	938	SAVED	\N	2012-08-20 10:27:08.885179	vendornumber_70005
1038	1037	938	SAVED	\N	2012-08-20 10:30:46.24932	customernumber_10000
1040	1039	938	SAVED	\N	2012-08-20 10:34:21.439688	vendornumber_70006
1042	1041	938	SAVED	\N	2012-08-20 10:37:50.31699	vendornumber_70007
1044	1043	938	SAVED	\N	2012-08-20 10:40:11.681982	vendornumber_70008
1045	1030	938	SAVED	\N	2012-08-20 10:41:36.905506	vendornumber_70002
1046	1041	938	SAVED	\N	2012-08-20 10:41:46.080562	vendornumber_70007
1047	1024	938	SAVED	\N	2012-08-20 10:42:00.618415	vendornumber_70001
1048	1032	938	SAVED	\N	2012-08-20 10:43:57.809945	vendornumber_70004
1049	1035	938	SAVED	\N	2012-08-20 10:45:32.398927	vendornumber_70005
1051	1050	938	SAVED	\N	2012-08-20 10:56:47.366991	vendornumber_70009
1053	1052	938	SAVED	\N	2012-08-20 11:07:09.643091	vendornumber_80000
1054	1039	938	SAVED	\N	2012-08-20 11:07:40.683956	vendornumber_70006
1055	1041	938	SAVED	\N	2012-08-20 11:07:51.657425	vendornumber_70007
1056	1052	938	SAVED	\N	2012-08-20 11:08:00.750317	vendornumber_80000
1057	1043	938	SAVED	\N	2012-08-20 11:08:13.34131	vendornumber_70008
1058	1050	938	SAVED	\N	2012-08-20 11:08:54.602511	vendornumber_70009
1060	1059	938	SAVED	\N	2012-08-20 11:13:19.814066	vendornumber_80001
1061	1059	938	SAVED	\N	2012-08-20 11:14:01.600967	vendornumber_80001
1063	1062	938	SAVED	\N	2012-08-20 11:17:59.518149	vendornumber_80002
1064	1052	938	SAVED	\N	2012-08-20 11:19:33.525696	vendornumber_80000
1065	1052	938	SAVED	\N	2012-08-20 11:20:20.883658	vendornumber_80000
1066	1035	938	SAVED	\N	2012-08-20 11:27:30.807472	vendornumber_80003
1067	1043	938	SAVED	\N	2012-08-20 11:27:40.115054	vendornumber_70004
1068	1043	938	SAVED	\N	2012-08-20 11:27:55.749415	vendornumber_70005
1069	1043	938	SAVED	\N	2012-08-20 11:28:14.698788	vendornumber_80005
1070	1039	938	SAVED	\N	2012-08-20 11:28:33.981506	vendornumber_80004
1071	1041	938	SAVED	\N	2012-08-20 11:28:49.506413	vendornumber_80006
1072	1050	938	SAVED	\N	2012-08-20 11:29:01.039837	vendornumber_80007
1073	1062	938	SAVED	\N	2012-08-20 11:29:20.422671	vendornumber_70005
1075	1074	938	SAVED	\N	2012-08-20 11:51:11.60173	vendornumber_70006
1077	1076	938	SAVED	\N	2012-08-20 11:54:38.072318	vendornumber_70007
1079	1078	938	SAVED	\N	2012-08-20 11:59:22.410589	vendornumber_80008
1081	1080	938	SAVED	\N	2012-08-20 12:06:58.966515	vendornumber_80009
1083	1082	938	SAVED	\N	2012-08-20 12:11:15.162054	vendornumber_70008
1084	1080	938	SAVED	\N	2012-08-20 12:11:23.942865	vendornumber_80009
1086	1085	938	SAVED	\N	2012-08-20 12:25:14.205708	vendornumber_70009
1088	1087	938	SAVED	\N	2012-08-20 12:25:28.174369	vendornumber_1
1089	1087	938	DELETED	\N	2012-08-20 12:26:07.05477	vendornumber_1
1090	1085	938	SAVED	\N	2012-08-20 12:26:55.056176	vendornumber_70009
1092	1091	938	SAVED	\N	2012-08-20 12:56:53.363287	partnumber_001
1094	1093	938	SAVED	\N	2012-08-20 13:02:15.08757	partnumber_002
1095	1091	938	SAVED	\N	2012-08-20 13:02:41.181786	partnumber_001
1096	1093	938	SAVED	\N	2012-08-20 13:03:08.411022	partnumber_002
1097	1093	938	SAVED	\N	2012-08-20 13:04:42.052752	partnumber_002
1099	1098	938	SAVED	\N	2012-08-20 13:10:52.409198	partnumber_003
1101	1100	938	SAVED	\N	2012-08-20 13:43:25.906289	partnumber_004
1102	1098	938	SAVED	\N	2012-08-20 13:43:44.248265	partnumber_003
1104	1103	938	SAVED	\N	2012-08-20 13:47:19.185145	partnumber_005
1106	1105	938	SAVED	\N	2012-08-20 13:51:17.041884	partnumber_006
1108	1107	938	SAVED	\N	2012-08-20 13:55:00.366591	partnumber_007
1109	1107	938	SAVED	\N	2012-08-20 14:01:27.784165	partnumber_007
1110	1105	938	SAVED	\N	2012-08-20 14:10:33.024761	partnumber_006
1112	1111	938	SAVED	\N	2012-08-20 14:13:43.29704	partnumber_008
1113	1098	938	SAVED	\N	2012-08-20 14:15:31.025988	partnumber_003
1114	1111	938	SAVED	\N	2012-08-20 14:16:01.43417	partnumber_008
1116	1115	938	SAVED	\N	2012-08-20 14:19:22.836735	partnumber_009
1118	1117	938	SAVED	\N	2012-08-20 14:19:52.335981	partnumber_010
1120	1119	938	SAVED	\N	2012-08-20 14:20:50.425995	partnumber_011
1122	1121	938	SAVED	\N	2012-08-20 14:21:25.959197	partnumber_012
1124	1123	938	SAVED	\N	2012-08-20 14:22:31.540693	partnumber_013
1125	1121	938	SAVED	\N	2012-08-20 14:36:30.046993	partnumber_ 012
1126	1115	938	SAVED	\N	2012-08-20 14:39:41.101776	partnumber_009
1127	1117	938	SAVED	\N	2012-08-20 14:40:23.814444	partnumber_010
1128	1119	938	SAVED	\N	2012-08-20 14:40:55.465463	partnumber_011
1129	1117	938	SAVED	\N	2012-08-20 14:41:04.333358	partnumber_010
1130	1121	938	SAVED	\N	2012-08-20 14:41:31.272833	partnumber_ 012
1131	1123	938	SAVED	\N	2012-08-20 14:42:02.565988	partnumber_013
1132	1115	938	SAVED	\N	2012-08-20 14:42:26.898843	partnumber_009
1134	1133	938	SAVED	\N	2012-08-20 14:48:59.823415	partnumber_014
1136	1135	938	SAVED	\N	2012-08-20 14:50:35.475035	partnumber_015
1138	1137	938	SAVED	\N	2012-08-20 15:11:15.10384	partnumber_016
1140	1139	938	SAVED	\N	2012-08-20 15:17:44.378326	vendornumber_70010
1141	1137	938	SAVED	\N	2012-08-20 15:18:31.303353	partnumber_016
1143	1142	938	SAVED	\N	2012-08-20 15:20:57.617348	partnumber_017
1145	1144	938	SAVED	\N	2012-08-20 15:28:54.687258	partnumber_018
1146	1144	938	SAVED	\N	2012-08-20 15:29:40.952865	partnumber_018
1148	1147	938	SAVED	\N	2012-08-20 15:35:12.28243	partnumber_019
1150	1149	938	SAVED	\N	2012-08-20 15:35:56.005909	partnumber_020
1151	1147	938	SAVED	\N	2012-08-20 15:36:09.642161	partnumber_019
1153	1152	938	SAVED	\N	2012-08-20 15:39:53.971593	partnumber_021
1155	1154	938	SAVED	\N	2012-08-20 15:50:07.393537	partnumber_101
1157	1156	938	SAVED	\N	2012-08-20 15:57:05.932634	partnumber_102
1159	1158	938	SAVED	\N	2012-08-20 16:03:28.756168	partnumber_103
1160	1158	938	SAVED	\N	2012-08-20 16:03:58.255059	partnumber_103
1162	1161	938	SAVED	\N	2012-08-21 10:20:40.372531	partnumber_104
1163	1161	938	SAVED	\N	2012-08-21 10:22:15.441403	partnumber_104
1165	1164	938	SAVED	\N	2012-08-21 10:26:47.706508	partnumber_105
1166	1161	938	SAVED	\N	2012-08-21 10:27:38.317584	partnumber_104
1168	1167	938	SAVED	\N	2012-08-21 10:32:10.378684	partnumber_106
1169	1164	938	SAVED	\N	2012-08-21 10:32:52.337187	partnumber_105
1170	1164	938	SAVED	\N	2012-08-21 10:33:11.061969	partnumber_105
1171	1167	938	SAVED	\N	2012-08-21 10:33:20.960757	partnumber_106
1172	1161	938	SAVED	\N	2012-08-21 10:33:28.652881	partnumber_104
1173	1167	938	SAVED	\N	2012-08-21 10:50:50.522705	partnumber_106
1175	1174	938	SAVED	\N	2012-08-21 10:54:30.142904	partnumber_022
1176	1147	938	SAVED	\N	2012-08-21 10:55:00.87459	partnumber_019
1177	1149	938	SAVED	\N	2012-08-21 10:55:11.093709	partnumber_020
1178	1152	938	SAVED	\N	2012-08-21 10:55:22.859818	partnumber_021
1179	1174	938	SAVED	\N	2012-08-21 10:56:16.707673	partnumber_022
1181	1180	938	SAVED	\N	2012-08-21 11:00:21.54107	partnumber_033
1182	1180	938	SAVED	\N	2012-08-21 11:00:34.144238	partnumber_023
1184	1183	938	SAVED	\N	2012-08-21 11:01:00.802611	partnumber_024
1186	1185	938	SAVED	\N	2012-08-21 11:04:04.671929	partnumber_107
1187	1078	938	SAVED	\N	2012-08-21 11:09:02.447993	vendornumber_70011
1188	1050	938	SAVED	\N	2012-08-21 11:09:16.264023	vendornumber_70012
1189	1080	938	SAVED	\N	2012-08-21 11:09:23.890905	vendornumber_80007
1191	1190	938	SAVED	\N	2012-08-21 11:12:12.042897	vendornumber_80008
1193	1192	938	SAVED	\N	2012-08-21 11:13:33.157059	partnumber_108
1194	1192	938	SAVED	\N	2012-08-21 11:13:58.240086	partnumber_108
1197	1161	938	SAVED	\N	2012-08-29 15:50:43.10712	partnumber_104
1210	1	938	SAVED	Buchungsnummer = 1	2012-08-30 11:04:36.331616	ordnumber_
1211	1	938	DELETED	\N	2012-08-30 11:05:12.224331	ordnumber_
1212	2	938	SAVED	Buchungsnummer = 2	2012-08-30 11:07:21.558859	ordnumber_
1214	3	1213	SAVED	Buchungsnummer = 3	2012-08-30 12:37:59.571587	ordnumber_
1215	4	1213	SAVED	Buchungsnummer = 4	2012-08-30 12:39:53.095223	ordnumber_
1216	5	1213	SAVED	Buchungsnummer = 5	2012-08-30 12:43:28.749144	ordnumber_
1221	6	938	SAVED	Buchungsnummer = 6	2012-08-30 12:49:30.458254	ordnumber_
1222	5	938	DELETED	\N	2012-08-30 12:49:57.574794	ordnumber_
1223	7	1213	SAVED	Buchungsnummer = 7	2012-08-30 12:50:35.638041	ordnumber_
1224	8	938	SAVED	Buchungsnummer = 8	2012-08-30 12:52:44.181581	ordnumber_
1225	9	938	SAVED	Buchungsnummer = 9	2012-08-30 12:54:32.836819	ordnumber_
1231	10	1213	SAVED	Buchungsnummer = 10	2012-08-30 13:24:23.460353	ordnumber_
1232	11	1213	SAVED	Buchungsnummer = 11	2012-08-30 13:25:40.159076	ordnumber_
1233	12	1213	SAVED	Buchungsnummer = 12	2012-08-30 13:27:10.230058	ordnumber_
1236	13	1213	SAVED	Buchungsnummer = 13	2012-08-30 13:28:11.476322	ordnumber_
1237	14	1213	SAVED	Buchungsnummer = 14	2012-08-30 13:29:02.486279	ordnumber_
1238	15	938	SAVED	Buchungsnummer = 15	2012-08-30 13:57:08.160868	ordnumber_
1239	16	1213	SAVED	Buchungsnummer = 16	2012-08-30 13:57:10.063124	ordnumber_
1240	17	1213	SAVED	Buchungsnummer = 17	2012-08-30 13:57:41.573583	ordnumber_
1241	18	1213	SAVED	Buchungsnummer = 18	2012-08-30 13:58:34.95785	ordnumber_
1242	19	938	SAVED	Buchungsnummer = 19	2012-08-30 13:58:42.716389	ordnumber_
1243	20	1213	SAVED	Buchungsnummer = 20	2012-08-30 13:59:11.937057	ordnumber_
1244	21	938	SAVED	Buchungsnummer = 21	2012-08-30 13:59:13.499188	ordnumber_
1245	22	1213	SAVED	Buchungsnummer = 22	2012-08-30 14:00:11.510545	ordnumber_
1246	23	938	SAVED	Buchungsnummer = 23	2012-08-30 14:00:23.80669	ordnumber_
1247	24	1213	SAVED	Buchungsnummer = 24	2012-08-30 14:00:39.390468	ordnumber_
1248	25	938	SAVED	Buchungsnummer = 25	2012-08-30 14:01:01.580004	ordnumber_
1249	26	1213	SAVED	Buchungsnummer = 26	2012-08-30 14:01:26.431948	ordnumber_
1250	27	938	SAVED	Buchungsnummer = 27	2012-08-30 14:01:39.429787	ordnumber_
1251	28	1213	SAVED	Buchungsnummer = 28	2012-08-30 14:01:59.940955	ordnumber_
1252	29	938	SAVED	Buchungsnummer = 29	2012-08-30 14:02:41.36279	ordnumber_
1253	28	938	DELETED	\N	2012-08-30 14:04:01.057007	ordnumber_
1254	30	1213	SAVED	Buchungsnummer = 30	2012-08-30 14:05:10.965191	ordnumber_
1255	31	1213	SAVED	Buchungsnummer = 31	2012-08-30 14:05:45.30982	ordnumber_
1256	32	938	SAVED	Buchungsnummer = 32	2012-08-30 14:07:59.882678	ordnumber_
1257	33	1213	SAVED	Buchungsnummer = 33	2012-08-30 14:08:17.659489	ordnumber_
1258	34	938	SAVED	Buchungsnummer = 34	2012-08-30 14:08:29.597855	ordnumber_
1259	35	1213	SAVED	Buchungsnummer = 35	2012-08-30 14:08:58.718595	ordnumber_
1260	36	938	SAVED	Buchungsnummer = 36	2012-08-30 14:09:00.265011	ordnumber_
1261	37	938	SAVED	Buchungsnummer = 37	2012-08-30 14:09:33.308	ordnumber_
1262	38	1213	SAVED	Buchungsnummer = 38	2012-08-30 14:09:41.372866	ordnumber_
1263	39	938	SAVED	Buchungsnummer = 39	2012-08-30 14:09:50.717824	ordnumber_
1264	40	938	SAVED	Buchungsnummer = 40	2012-08-30 14:10:09.951944	ordnumber_
1265	41	938	SAVED	Buchungsnummer = 41	2012-08-30 14:10:25.283603	ordnumber_
1266	42	1213	SAVED	Buchungsnummer = 42	2012-08-30 14:10:28.903911	ordnumber_
1267	43	1213	SAVED	Buchungsnummer = 43	2012-08-30 14:12:02.92511	ordnumber_
1268	44	1213	SAVED	Buchungsnummer = 44	2012-08-30 14:12:55.529892	ordnumber_
1269	45	938	SAVED	Buchungsnummer = 45	2012-08-30 14:13:30.740869	ordnumber_
1270	46	1213	SAVED	Buchungsnummer = 46	2012-08-30 14:13:54.006789	ordnumber_
1271	47	938	SAVED	Buchungsnummer = 47	2012-08-30 14:13:55.285877	ordnumber_
1272	48	938	SAVED	Buchungsnummer = 48	2012-08-30 14:14:34.66729	ordnumber_
1273	49	938	SAVED	Buchungsnummer = 49	2012-08-30 14:14:55.591459	ordnumber_
1274	50	1213	SAVED	Buchungsnummer = 50	2012-08-30 14:15:06.596851	ordnumber_
1275	51	938	SAVED	Buchungsnummer = 51	2012-08-30 14:15:18.144438	ordnumber_
1276	52	938	SAVED	Buchungsnummer = 52	2012-08-30 14:15:40.618474	ordnumber_
1277	53	1213	SAVED	Buchungsnummer = 53	2012-08-30 14:15:43.871034	ordnumber_
1278	54	938	SAVED	Buchungsnummer = 54	2012-08-30 14:15:58.138242	ordnumber_
1279	55	938	SAVED	Buchungsnummer = 55	2012-08-30 14:16:28.36114	ordnumber_
1280	56	938	SAVED	Buchungsnummer = 56	2012-08-30 14:16:51.269139	ordnumber_
1281	57	1213	SAVED	Buchungsnummer = 57	2012-08-30 14:16:53.75795	ordnumber_
1282	58	938	SAVED	Buchungsnummer = 58	2012-08-30 14:17:12.780997	ordnumber_
1283	59	1213	SAVED	Buchungsnummer = 59	2012-08-30 14:17:18.899765	ordnumber_
1284	60	1213	SAVED	Buchungsnummer = 60	2012-08-30 14:17:41.445445	ordnumber_
1285	61	938	SAVED	Buchungsnummer = 61	2012-08-30 14:17:50.148335	ordnumber_
1286	62	1213	SAVED	Buchungsnummer = 62	2012-08-30 14:18:11.05493	ordnumber_
1287	63	938	SAVED	Buchungsnummer = 63	2012-08-30 14:18:11.435933	ordnumber_
1288	64	938	SAVED	Buchungsnummer = 64	2012-08-30 14:18:35.139866	ordnumber_
1289	65	1213	SAVED	Buchungsnummer = 65	2012-08-30 14:18:42.012594	ordnumber_
1290	66	938	SAVED	Buchungsnummer = 66	2012-08-30 14:18:53.107621	ordnumber_
1291	67	1213	SAVED	Buchungsnummer = 67	2012-08-30 14:19:10.71179	ordnumber_
1292	68	1213	SAVED	Buchungsnummer = 68	2012-08-30 14:19:37.900034	ordnumber_
1293	69	1213	SAVED	Buchungsnummer = 69	2012-08-30 14:19:59.847872	ordnumber_
1294	70	938	SAVED	Buchungsnummer = 70	2012-08-30 14:20:38.992802	ordnumber_
1295	71	938	SAVED	Buchungsnummer = 71	2012-08-30 14:20:58.860283	ordnumber_
1296	72	938	SAVED	Buchungsnummer = 72	2012-08-30 14:21:23.98586	ordnumber_
1297	73	1213	SAVED	Buchungsnummer = 73	2012-08-30 14:21:33.230763	ordnumber_
1298	74	938	SAVED	Buchungsnummer = 74	2012-08-30 14:21:40.491186	ordnumber_
1299	75	1213	SAVED	Buchungsnummer = 75	2012-08-30 14:22:26.516604	ordnumber_
1300	76	938	SAVED	Buchungsnummer = 76	2012-08-30 14:22:38.741209	ordnumber_
1301	77	1213	SAVED	Buchungsnummer = 77	2012-08-30 14:22:51.826856	ordnumber_
1302	78	938	SAVED	Buchungsnummer = 78	2012-08-30 14:23:10.898298	ordnumber_
1303	79	1213	SAVED	Buchungsnummer = 79	2012-08-30 14:23:14.871768	ordnumber_
1304	80	938	SAVED	Buchungsnummer = 80	2012-08-30 14:23:36.406444	ordnumber_
1305	81	1213	SAVED	Buchungsnummer = 81	2012-08-30 14:23:39.282544	ordnumber_
1306	82	938	SAVED	Buchungsnummer = 82	2012-08-30 14:24:03.216367	ordnumber_
1307	83	1213	SAVED	Buchungsnummer = 83	2012-08-30 14:24:08.44006	ordnumber_
1308	84	938	SAVED	Buchungsnummer = 84	2012-08-30 14:24:21.077551	ordnumber_
1309	85	1213	SAVED	Buchungsnummer = 85	2012-08-30 14:24:32.508698	ordnumber_
1310	86	938	SAVED	Buchungsnummer = 86	2012-08-30 14:24:38.736698	ordnumber_
1311	87	938	SAVED	Buchungsnummer = 87	2012-08-30 14:24:56.389465	ordnumber_
1312	88	1213	SAVED	Buchungsnummer = 88	2012-08-30 14:24:56.585422	ordnumber_
1313	89	938	SAVED	Buchungsnummer = 89	2012-08-30 14:25:19.231848	ordnumber_
1314	90	1213	SAVED	Buchungsnummer = 90	2012-08-30 14:26:28.668336	ordnumber_
1315	91	1213	SAVED	Buchungsnummer = 91	2012-08-30 14:26:51.219272	ordnumber_
1316	92	1213	SAVED	Buchungsnummer = 92	2012-08-30 14:27:15.277978	ordnumber_
1317	93	1213	SAVED	Buchungsnummer = 93	2012-08-30 14:27:40.401398	ordnumber_
1318	94	1213	SAVED	Buchungsnummer = 94	2012-08-30 14:28:01.740255	ordnumber_
1319	95	1213	SAVED	Buchungsnummer = 95	2012-08-30 14:28:30.378935	ordnumber_
1320	96	1213	SAVED	Buchungsnummer = 96	2012-08-30 14:28:55.674848	ordnumber_
1321	97	1213	SAVED	Buchungsnummer = 97	2012-08-30 14:29:14.495637	ordnumber_
1322	98	1213	SAVED	Buchungsnummer = 98	2012-08-30 14:43:28.679546	ordnumber_
1324	1323	1213	SAVED	\N	2012-08-30 14:55:16.017717	vendornumber_70013
1326	1325	1213	SAVED	\N	2012-08-30 14:57:04.353306	partnumber_025
1327	99	1213	POSTED	\N	2012-08-30 15:02:56.101471	invnumber_99
1328	100	1213	SAVED	Buchungsnummer = 100	2012-08-30 15:12:06.694578	ordnumber_
1329	101	1213	POSTED	\N	2012-08-30 15:14:07.978541	invnumber_101
1330	102	1213	POSTED	\N	2012-08-30 15:15:11.217988	invnumber_102
1331	98	1213	DELETED	\N	2012-08-30 15:17:24.796377	ordnumber_
1332	103	1213	SAVED	Buchungsnummer = 103	2012-08-30 15:19:46.559066	ordnumber_
1333	99	1213	DELETED	\N	2012-08-30 15:22:01.165278	invnumber_99
1334	101	1213	DELETED	\N	2012-08-30 15:22:15.832	invnumber_101
1335	102	1213	DELETED	\N	2012-08-30 15:22:34.14114	invnumber_102
1336	105	1213	POSTED	\N	2012-08-30 15:26:07.725989	invnumber_29100
1337	106	1213	POSTED	\N	2012-08-30 15:27:17.410958	invnumber_35743
1338	107	1213	POSTED	\N	2012-08-30 15:28:13.15508	invnumber_107
1339	107	1213	DELETED	\N	2012-08-30 15:29:09.409699	invnumber_107
1340	100	1213	DELETED	\N	2012-08-30 15:30:44.344534	ordnumber_
1341	108	1213	POSTED	\N	2012-08-30 15:32:52.354029	invnumber_41568
1342	109	1213	SAVED	Buchungsnummer = 109	2012-08-30 15:34:57.301328	ordnumber_
1344	1343	938	SAVED	\N	2012-09-03 11:36:46.427488	vendornumber_70014
1345	110	938	POSTED	\N	2012-09-03 11:39:52.509144	invnumber_d201206400
1346	111	938	SAVED	Buchungsnummer = 111	2012-09-03 13:52:32.338043	ordnumber_
1347	112	938	SAVED	Buchungsnummer = 112	2012-09-03 14:08:11.17056	ordnumber_
1348	113	938	SAVED	Buchungsnummer = 113	2012-09-03 15:41:51.750099	ordnumber_
1350	1349	938	SAVED	\N	2012-09-03 15:44:02.633675	vendornumber_60000
1351	114	938	POSTED	\N	2012-09-03 15:52:54.828421	invnumber_114
1352	114	938	POSTED	\N	2012-09-03 15:53:54.237934	invnumber_114
1353	115	938	SAVED	Buchungsnummer = 115	2012-09-04 11:12:37.855457	ordnumber_
1354	116	938	SAVED	Buchungsnummer = 116	2012-09-04 11:13:13.522731	ordnumber_
1355	117	938	SAVED	Buchungsnummer = 117	2012-09-04 11:13:38.781412	ordnumber_
1356	118	938	SAVED	Buchungsnummer = 118	2012-09-04 11:14:21.263462	ordnumber_
1357	119	938	SAVED	Buchungsnummer = 119	2012-09-04 11:15:03.946437	ordnumber_
1358	120	938	SAVED	Buchungsnummer = 120	2012-09-04 11:15:25.930648	ordnumber_
1359	121	938	SAVED	Buchungsnummer = 121	2012-09-04 11:15:52.347299	ordnumber_
1360	122	938	SAVED	Buchungsnummer = 122	2012-09-04 11:16:13.679258	ordnumber_
1361	123	938	SAVED	Buchungsnummer = 123	2012-09-04 11:16:44.85213	ordnumber_
1362	124	938	SAVED	Buchungsnummer = 124	2012-09-04 11:17:08.913401	ordnumber_
1363	125	938	SAVED	Buchungsnummer = 125	2012-09-04 11:17:32.115751	ordnumber_
1364	126	938	SAVED	Buchungsnummer = 126	2012-09-04 11:18:02.763011	ordnumber_
1365	127	938	SAVED	Buchungsnummer = 127	2012-09-04 11:18:28.986439	ordnumber_
1366	128	938	SAVED	Buchungsnummer = 128	2012-09-04 11:18:49.587103	ordnumber_
1367	129	938	SAVED	Buchungsnummer = 129	2012-09-04 11:19:15.458266	ordnumber_
1368	130	938	SAVED	Buchungsnummer = 130	2012-09-04 11:19:36.795931	ordnumber_
1369	131	938	SAVED	Buchungsnummer = 131	2012-09-04 11:19:58.43124	ordnumber_
1370	132	938	SAVED	Buchungsnummer = 132	2012-09-04 11:20:23.057286	ordnumber_
1371	133	938	SAVED	Buchungsnummer = 133	2012-09-04 11:20:47.463455	ordnumber_
1372	134	938	SAVED	Buchungsnummer = 134	2012-09-04 11:21:07.652098	ordnumber_
1373	135	938	SAVED	Buchungsnummer = 135	2012-09-04 11:21:28.9985	ordnumber_
1374	136	938	SAVED	Buchungsnummer = 136	2012-09-04 11:21:46.433504	ordnumber_
1375	137	938	SAVED	Buchungsnummer = 137	2012-09-04 11:22:02.759594	ordnumber_
1376	138	938	SAVED	Buchungsnummer = 138	2012-09-04 11:22:29.69211	ordnumber_
1377	139	938	SAVED	Buchungsnummer = 139	2012-09-04 11:22:48.720183	ordnumber_
1378	140	938	SAVED	Buchungsnummer = 140	2012-09-04 11:23:12.849757	ordnumber_
1379	141	938	SAVED	Buchungsnummer = 141	2012-09-04 11:23:28.720363	ordnumber_
1380	142	938	SAVED	Buchungsnummer = 142	2012-09-04 11:23:47.058651	ordnumber_
1381	143	938	SAVED	Buchungsnummer = 143	2012-09-04 11:24:09.960125	ordnumber_
1382	144	938	SAVED	Buchungsnummer = 144	2012-09-04 11:24:33.628802	ordnumber_
1383	145	938	SAVED	Buchungsnummer = 145	2012-09-04 11:24:55.448091	ordnumber_
1384	146	938	SAVED	Buchungsnummer = 146	2012-09-04 11:25:12.97833	ordnumber_
1385	147	938	SAVED	Buchungsnummer = 147	2012-09-04 11:25:55.841419	ordnumber_
1386	148	938	SAVED	Buchungsnummer = 148	2012-09-04 11:27:16.363291	ordnumber_
1387	149	938	SAVED	Buchungsnummer = 149	2012-09-04 11:27:49.919985	ordnumber_
1388	150	938	SAVED	Buchungsnummer = 150	2012-09-04 11:28:33.161936	ordnumber_
1389	151	938	SAVED	Buchungsnummer = 151	2012-09-04 11:29:07.290039	ordnumber_
1390	152	938	SAVED	Buchungsnummer = 152	2012-09-04 11:29:34.090292	ordnumber_
1391	153	938	SAVED	Buchungsnummer = 153	2012-09-04 11:30:02.823245	ordnumber_
1392	154	938	SAVED	Buchungsnummer = 154	2012-09-04 11:30:25.75144	ordnumber_
1393	128	938	DELETED	\N	2012-09-04 11:42:19.750991	ordnumber_
1394	155	938	SAVED	Buchungsnummer = 155	2012-09-04 11:42:50.709418	ordnumber_
1395	156	938	POSTED	\N	2012-09-04 11:46:08.162109	invnumber_63415
1396	157	938	SAVED	Buchungsnummer = 157	2012-09-04 12:00:21.576719	ordnumber_
1398	1397	1213	SAVED	\N	2012-09-12 11:27:30.798719	vendornumber_80009
1400	1399	938	SAVED	\N	2012-09-12 11:29:38.540781	ordnumber_201201
1402	1401	1213	SAVED	\N	2012-09-12 11:30:23.087952	vendornumber_70015
1403	158	938	POSTED	\N	2012-09-12 11:31:38.232716	invnumber_201201
1405	1404	1213	SAVED	\N	2012-09-12 11:32:32.738011	partnumber_026
1407	1406	1213	SAVED	\N	2012-09-12 11:38:06.370088	partnumber_109
1408	1404	938	SAVED	\N	2012-09-12 11:40:07.012863	partnumber_026
1409	1406	1213	SAVED	\N	2012-09-12 11:40:41.570884	partnumber_109
1411	1410	938	SAVED	\N	2012-09-12 11:42:17.807996	ordnumber_201202
1414	1412	938	SAVED	\N	2012-09-12 11:44:32.818123	donumber_kr20120113
1417	1416	1213	SAVED	\N	2012-09-12 11:45:32.679146	ordnumber_201203
1418	159	938	POSTED	\N	2012-09-12 11:46:35.595859	invnumber_kr20120113
1425	1419	1213	SAVED	\N	2012-09-12 11:48:47.802102	donumber_R203913
1431	160	1213	POSTED	\N	2012-09-12 11:51:00.36267	invnumber_R201243
1433	1432	938	SAVED	\N	2012-09-12 11:51:52.488133	ordnumber_201204
1436	1434	938	SAVED	\N	2012-09-12 11:52:49.51403	donumber_i784363
1439	1438	1213	SAVED	\N	2012-09-12 11:55:04.017372	ordnumber_201205
1440	161	938	POSTED	\N	2012-09-12 11:55:20.968213	invnumber_i784363
1446	1441	1213	SAVED	\N	2012-09-12 11:57:39.928977	donumber_KBL49384
1451	1441	1213	SAVED	\N	2012-09-12 11:57:58.665569	donumber_KBL49384
1456	162	1213	POSTED	\N	2012-09-12 12:00:50.18701	invnumber_KBL42348
1458	1457	938	SAVED	\N	2012-09-12 12:07:37.41926	ordnumber_201206
1464	1459	938	SAVED	\N	2012-09-12 12:09:40.79508	donumber_dog13498
1470	1469	1213	SAVED	\N	2012-09-12 12:11:04.799032	ordnumber_201207
1471	1469	1213	SAVED	\N	2012-09-12 12:11:48.714555	ordnumber_201207
1472	163	938	POSTED	\N	2012-09-12 12:11:50.634562	invnumber_dog13498
1475	1474	938	SAVED	\N	2012-09-12 12:15:01.341987	ordnumber_201208
1480	1476	1213	SAVED	\N	2012-09-12 12:15:45.362962	donumber_PSR4352
1487	1484	938	SAVED	\N	2012-09-12 12:16:02.968857	donumber_siemann213
1490	164	1213	POSTED	\N	2012-09-12 12:16:58.234736	invnumber_PSR45325
1491	165	938	POSTED	\N	2012-09-12 12:17:13.695426	invnumber_siemann213
1493	1492	1213	SAVED	\N	2012-09-12 12:24:03.065433	ordnumber_201202-02
1496	1494	1213	SAVED	\N	2012-09-12 12:33:07.292747	donumber_KS3245549
1498	166	1213	POSTED	\N	2012-09-12 12:34:31.343353	invnumber_KS547843
1500	1499	938	SAVED	\N	2012-09-12 12:36:07.67861	ordnumber_201209
1502	1501	1213	SAVED	\N	2012-09-12 12:38:12.447104	ordnumber_201210
1506	1503	938	SAVED	\N	2012-09-12 12:39:22.769624	donumber_B123St
1509	167	938	POSTED	\N	2012-09-12 12:40:21.413496	invnumber_B123St
1511	1510	938	SAVED	\N	2012-09-12 12:47:57.300177	ordnumber_201211
1514	1512	938	SAVED	\N	2012-09-12 12:49:24.233013	donumber_nsoy2314
1516	168	938	POSTED	\N	2012-09-12 12:51:04.698806	invnumber_nsoy2314
1518	1517	1213	SAVED	\N	2012-09-12 14:02:22.572735	ordnumber_201212
1519	169	1213	POSTED	\N	2012-09-12 14:03:23.364572	invnumber_BC54895
1521	1520	938	SAVED	\N	2012-09-12 14:04:28.15692	ordnumber_201213
1523	1522	1213	SAVED	\N	2012-09-12 14:05:43.31042	ordnumber_201214
1524	1522	1213	SAVED	\N	2012-09-12 14:05:58.351697	ordnumber_201214
1527	1525	938	SAVED	\N	2012-09-12 14:06:01.216231	donumber_Kule14314
1531	1529	1213	SAVED	\N	2012-09-12 14:07:21.913236	donumber_UM58490578
1533	170	938	POSTED	\N	2012-09-12 14:07:26.614667	invnumber_Kule14314
1534	171	1213	POSTED	\N	2012-09-12 14:08:19.922754	invnumber_UM438947
1536	1535	1213	SAVED	\N	2012-09-12 14:10:55.875084	ordnumber_201215
1538	1537	938	SAVED	\N	2012-09-12 14:11:13.524832	ordnumber_201216
1539	172	938	POSTED	\N	2012-09-12 14:14:06.733301	invnumber_sbi542534
1546	1540	1213	SAVED	\N	2012-09-12 14:14:58.248978	donumber_PH34287
1552	173	1213	POSTED	\N	2012-09-12 14:16:01.154749	invnumber_PH480956
1554	1553	1213	SAVED	\N	2012-09-12 14:22:52.010953	ordnumber_201217
1556	1555	938	SAVED	\N	2012-09-12 14:23:50.055057	ordnumber_201218
1557	174	1213	POSTED	\N	2012-09-12 14:24:09.764645	invnumber_MA05987078
1558	175	938	POSTED	\N	2012-09-12 14:26:49.964807	invnumber_Reiter05543
1560	1559	1213	SAVED	\N	2012-09-12 14:28:53.814156	ordnumber_201219
1561	176	1213	POSTED	\N	2012-09-12 14:30:44.021759	invnumber_IPG38765
1562	174	1213	DELETED	\N	2012-09-12 14:31:25.737613	invnumber_MA05987078
1563	177	1213	POSTED	\N	2012-09-12 14:34:33.058089	invnumber_MA05987078
1565	1564	1213	SAVED	\N	2012-09-12 14:36:48.749562	ordnumber_201220
1566	178	1213	POSTED	\N	2012-09-12 14:38:20.573686	invnumber_ICL654667
1568	1567	1213	SAVED	\N	2012-09-12 14:39:35.55502	ordnumber_201221
1570	1569	938	SAVED	\N	2012-09-12 14:41:05.544591	ordnumber_201222
1571	179	1213	POSTED	\N	2012-09-12 14:41:19.701861	invnumber_BR54574567
1576	1572	938	SAVED	\N	2012-09-12 14:43:11.499422	donumber_fkidsg93
1580	180	938	POSTED	\N	2012-09-12 14:44:44.593937	invnumber_fkidsg93
1582	1581	1213	SAVED	\N	2012-09-12 14:48:17.062237	partnumber_027
1583	1581	1213	SAVED	\N	2012-09-12 14:48:43.835874	partnumber_027
1585	1584	1213	SAVED	\N	2012-09-12 14:51:37.789033	ordnumber_201203-01
1589	1586	1213	SAVED	\N	2012-09-12 14:54:45.524498	donumber_RB594573
1592	181	1213	POSTED	\N	2012-09-12 14:56:00.999972	invnumber_RB485373
1593	1111	938	SAVED	\N	2012-09-12 15:17:04.788775	partnumber_008
1594	1098	938	SAVED	\N	2012-09-12 15:17:22.182945	partnumber_003
1595	1142	938	SAVED	\N	2012-09-12 15:17:35.782925	partnumber_017
1596	1152	938	SAVED	\N	2012-09-12 15:17:48.593884	partnumber_021
1597	1100	938	SAVED	\N	2012-09-12 15:18:02.035538	partnumber_004
1598	1107	938	SAVED	\N	2012-09-12 15:18:36.090063	partnumber_007
1599	1103	938	SAVED	\N	2012-09-12 15:18:52.242343	partnumber_005
1600	1183	938	SAVED	\N	2012-09-12 15:19:14.873899	partnumber_024
1601	1174	938	SAVED	\N	2012-09-12 15:19:50.784913	partnumber_022
1602	1147	938	SAVED	\N	2012-09-12 15:20:05.316748	partnumber_019
1603	1137	938	SAVED	\N	2012-09-12 15:20:26.513591	partnumber_016
1604	1093	938	SAVED	\N	2012-09-12 15:20:50.192694	partnumber_002
1605	1180	938	SAVED	\N	2012-09-12 15:21:02.454648	partnumber_023
1606	1117	938	SAVED	\N	2012-09-12 15:21:14.907613	partnumber_010
1607	1123	938	SAVED	\N	2012-09-12 15:21:31.864563	partnumber_013
1608	1119	938	SAVED	\N	2012-09-12 15:21:45.452608	partnumber_011
1609	1115	938	SAVED	\N	2012-09-12 15:22:04.956508	partnumber_009
1610	1121	938	SAVED	\N	2012-09-12 15:22:16.579737	partnumber_ 012
1611	1133	938	SAVED	\N	2012-09-12 15:22:30.870685	partnumber_014
1612	1135	938	SAVED	\N	2012-09-12 15:22:43.562944	partnumber_015
1613	1105	938	SAVED	\N	2012-09-12 15:22:57.117422	partnumber_006
1614	1149	938	SAVED	\N	2012-09-12 15:23:08.46238	partnumber_020
1615	1144	938	SAVED	\N	2012-09-12 15:23:19.068764	partnumber_018
1616	1156	938	SAVED	\N	2012-09-12 15:23:52.044308	partnumber_102
1617	1192	938	SAVED	\N	2012-09-12 15:24:01.512608	partnumber_108
1618	1164	938	SAVED	\N	2012-09-12 15:24:16.907694	partnumber_105
1619	1167	938	SAVED	\N	2012-09-12 15:24:28.153676	partnumber_106
1620	1161	938	SAVED	\N	2012-09-12 15:24:37.653365	partnumber_104
1621	1154	938	SAVED	\N	2012-09-12 15:24:49.266984	partnumber_101
1622	1158	938	SAVED	\N	2012-09-12 15:25:04.100082	partnumber_103
1623	1185	938	SAVED	\N	2012-09-12 15:25:16.877581	partnumber_107
1624	1091	938	SAVED	\N	2012-09-12 15:35:50.354467	partnumber_001
1625	1093	938	SAVED	\N	2012-09-12 15:36:27.42399	partnumber_002
1626	1098	938	SAVED	\N	2012-09-12 15:37:10.231156	partnumber_003
1627	1100	938	SAVED	\N	2012-09-12 15:37:29.417258	partnumber_004
1628	1103	938	SAVED	\N	2012-09-12 15:37:49.486576	partnumber_005
1629	1105	938	SAVED	\N	2012-09-12 15:38:09.457247	partnumber_006
1630	1107	938	SAVED	\N	2012-09-12 15:38:33.002464	partnumber_007
1631	1111	938	SAVED	\N	2012-09-12 15:39:04.78835	partnumber_008
1632	1115	938	SAVED	\N	2012-09-12 15:39:26.185422	partnumber_009
1633	1117	938	SAVED	\N	2012-09-12 15:39:47.610081	partnumber_010
1634	1119	938	SAVED	\N	2012-09-12 15:40:01.609708	partnumber_011
1635	1121	938	SAVED	\N	2012-09-12 15:40:25.120468	partnumber_ 012
1636	1123	938	SAVED	\N	2012-09-12 15:40:39.188574	partnumber_013
1637	1133	938	SAVED	\N	2012-09-12 15:41:06.651481	partnumber_014
1638	1135	938	SAVED	\N	2012-09-12 15:41:31.768758	partnumber_015
1639	1137	938	SAVED	\N	2012-09-12 15:41:52.78489	partnumber_016
1640	1142	938	SAVED	\N	2012-09-12 15:42:22.156452	partnumber_017
1641	1144	938	SAVED	\N	2012-09-12 15:42:39.565029	partnumber_018
1642	1147	938	SAVED	\N	2012-09-12 15:42:59.176873	partnumber_019
1643	1149	938	SAVED	\N	2012-09-12 15:43:17.229227	partnumber_020
1644	1152	938	SAVED	\N	2012-09-12 15:43:34.873452	partnumber_021
1645	1174	938	SAVED	\N	2012-09-12 15:43:54.043854	partnumber_022
1646	1180	938	SAVED	\N	2012-09-12 15:44:19.017528	partnumber_023
1647	1183	938	SAVED	\N	2012-09-12 15:44:44.320677	partnumber_024
1648	1325	938	SAVED	\N	2012-09-12 15:45:14.175785	partnumber_025
1649	1154	938	SAVED	\N	2012-09-12 15:46:05.710804	partnumber_101
1650	1156	938	SAVED	\N	2012-09-12 15:46:27.247712	partnumber_102
1651	1158	938	SAVED	\N	2012-09-12 15:47:17.407238	partnumber_103
1652	1161	938	SAVED	\N	2012-09-12 15:47:55.289222	partnumber_104
1653	1164	938	SAVED	\N	2012-09-12 15:48:27.412783	partnumber_105
1654	1167	938	SAVED	\N	2012-09-12 15:49:06.665478	partnumber_106
1655	1185	938	SAVED	\N	2012-09-12 15:49:36.422154	partnumber_107
1656	1192	938	SAVED	\N	2012-09-12 15:50:24.405571	partnumber_108
1657	1147	938	SAVED	\N	2012-09-12 15:52:32.276214	partnumber_019
1658	1149	938	SAVED	\N	2012-09-12 15:53:14.015213	partnumber_020
1659	1152	938	SAVED	\N	2012-09-12 15:54:44.778452	partnumber_021
1660	182	1213	SAVED	Buchungsnummer = 182	2012-09-12 16:56:01.492263	ordnumber_
1661	183	1213	SAVED	Buchungsnummer = 183	2012-09-14 11:39:33.073531	ordnumber_
1662	184	1213	SAVED	Buchungsnummer = 184	2012-09-14 11:43:46.108002	ordnumber_
1663	185	1213	SAVED	Buchungsnummer = 185	2012-09-14 15:15:43.41789	ordnumber_
1666	186	1213	SAVED	Buchungsnummer = 186	2012-09-14 15:39:03.138745	ordnumber_
1667	187	1213	SAVED	Buchungsnummer = 187	2012-09-14 16:01:30.25267	ordnumber_
1668	188	938	SAVED	Buchungsnummer = 188	2012-09-17 10:49:21.55341	ordnumber_
1669	1121	938	SAVED	\N	2012-09-17 12:23:39.448354	partnumber_012
1728	189	938	SAVED	Buchungsnummer = 189	2012-09-17 13:53:51.604752	ordnumber_
1729	189	938	DELETED	\N	2012-09-17 13:54:24.951278	ordnumber_
1730	190	938	SAVED	Buchungsnummer = 190	2012-09-17 13:54:38.483875	ordnumber_
1731	191	938	SAVED	Buchungsnummer = 191	2012-09-17 13:55:39.974662	ordnumber_
1732	192	938	SAVED	Buchungsnummer = 192	2012-09-17 13:56:16.072844	ordnumber_
1733	193	938	SAVED	Buchungsnummer = 193	2012-09-17 13:56:47.003201	ordnumber_
1734	194	938	SAVED	Buchungsnummer = 194	2012-09-17 13:57:25.265643	ordnumber_
1735	195	938	SAVED	Buchungsnummer = 195	2012-09-17 13:57:57.625502	ordnumber_
1736	196	938	SAVED	Buchungsnummer = 196	2012-09-17 13:58:18.975179	ordnumber_
1737	197	938	SAVED	Buchungsnummer = 197	2012-09-17 13:58:54.094116	ordnumber_
1738	198	938	SAVED	Buchungsnummer = 198	2012-09-17 13:59:30.829386	ordnumber_
1739	199	938	SAVED	Buchungsnummer = 199	2012-09-17 14:00:08.386667	ordnumber_
1740	200	938	SAVED	Buchungsnummer = 200	2012-09-17 14:00:39.390914	ordnumber_
1741	201	938	SAVED	Buchungsnummer = 201	2012-09-17 14:01:09.60373	ordnumber_
1743	1742	1213	SAVED	\N	2012-09-21 14:32:13.140565	partnumber_028
1745	1744	1213	SAVED	\N	2012-09-21 14:34:23.954628	ordnumber_201210-1
1748	1746	1213	SAVED	\N	2012-09-21 14:35:56.397221	donumber_APSXT400012
1750	206	1213	POSTED	\N	2012-09-21 14:43:12.262715	invnumber_APSXT400012
1751	207	1213	POSTED	\N	2012-09-21 14:45:39.78317	invnumber_APSXT400012
1753	1752	1213	SAVED	\N	2012-09-21 15:10:16.972953	partnumber_110
1755	1754	938	SAVED	\N	2012-09-21 15:11:10.554524	customernumber_10001
1757	1756	938	SAVED	\N	2012-09-21 15:13:38.509452	ordnumber_022012
1759	1758	938	SAVED	\N	2012-09-21 15:16:58.348329	partnumber_000
1760	208	938	POSTED	\N	2012-09-21 15:31:42.532604	invnumber_1
1762	1756	938	SAVED	\N	2012-09-21 15:34:18.816125	ordnumber_022012
1763	1756	938	SAVED	\N	2012-09-21 15:35:56.177794	ordnumber_022012
1773	218	938	SAVED	Buchungsnummer = 218	2012-09-21 15:45:37.03024	ordnumber_
1774	219	938	SAVED	Buchungsnummer = 219	2012-09-21 15:47:20.077635	ordnumber_
1775	220	938	SAVED	Buchungsnummer = 220	2012-09-21 15:48:26.023771	ordnumber_
1776	221	938	SAVED	Buchungsnummer = 221	2012-09-21 15:49:36.699838	ordnumber_
1778	1035	938	SAVED	\N	2012-09-25 20:50:41.539949	vendornumber_80002
1779	1039	938	SAVED	\N	2012-09-25 20:50:49.373456	vendornumber_80003
1780	1043	938	SAVED	\N	2012-09-25 20:50:56.093344	vendornumber_80004
1781	1041	938	SAVED	\N	2012-09-25 20:51:03.873139	vendornumber_80005
1782	1080	938	SAVED	\N	2012-09-25 20:51:12.472802	vendornumber_80006
1783	1190	938	SAVED	\N	2012-09-25 20:51:19.605127	vendornumber_80007
1784	1397	938	SAVED	\N	2012-09-25 20:51:34.713878	vendornumber_80008
1785	1098	938	SAVED	\N	2012-09-25 20:52:37.755537	partnumber_003
1786	1098	938	SAVED	\N	2012-09-25 20:53:02.419498	partnumber_003
1787	1111	938	SAVED	\N	2012-09-25 20:53:30.831006	partnumber_008
1788	1185	938	SAVED	\N	2012-09-25 20:54:46.912187	partnumber_107
1789	1406	938	SAVED	\N	2012-09-25 20:55:38.540616	partnumber_1
1790	1752	938	SAVED	\N	2012-09-25 20:55:48.610658	partnumber_109
1791	1744	938	SAVED	\N	2012-09-25 21:00:20.79425	ordnumber_201210
1792	1492	938	SAVED	\N	2012-09-25 21:01:41.650176	ordnumber_201202
1793	1410	938	SAVED	\N	2012-09-25 21:01:52.30849	ordnumber_201203
1794	1416	938	SAVED	\N	2012-09-25 21:02:01.321087	ordnumber_201204
1795	1584	938	SAVED	\N	2012-09-25 21:02:12.449886	ordnumber_201205
1796	1432	938	SAVED	\N	2012-09-25 21:02:33.758198	ordnumber_201206
1797	1438	938	SAVED	\N	2012-09-25 21:02:41.999234	ordnumber_201207
1798	1469	938	SAVED	\N	2012-09-25 21:02:54.090968	ordnumber_201209
1799	1457	938	SAVED	\N	2012-09-25 21:03:02.59934	ordnumber_201210
1800	1744	938	SAVED	\N	2012-09-25 21:03:14.266069	ordnumber_201211
1801	1499	938	SAVED	\N	2012-09-25 21:03:21.740621	ordnumber_201212
1802	1501	938	SAVED	\N	2012-09-25 21:03:32.765812	ordnumber_--------
1803	1510	938	SAVED	\N	2012-09-25 21:03:41.265411	ordnumber_201213
1804	1517	938	SAVED	\N	2012-09-25 21:03:48.257039	ordnumber_201214
1805	1522	938	SAVED	\N	2012-09-25 21:03:55.07336	ordnumber_201215
1806	1520	938	SAVED	\N	2012-09-25 21:04:02.631726	ordnumber_201216
1807	1537	938	SAVED	\N	2012-09-25 21:04:10.973083	ordnumber_201217
1808	1535	938	SAVED	\N	2012-09-25 21:04:18.373034	ordnumber_201218
1809	1555	938	SAVED	\N	2012-09-25 21:04:29.28932	ordnumber_201219
1810	1559	938	SAVED	\N	2012-09-25 21:04:42.605702	ordnumber_201220
1811	1553	938	SAVED	\N	2012-09-25 21:05:01.749739	ordnumber_201221
1812	1567	938	SAVED	\N	2012-09-25 21:05:12.546787	ordnumber_201222
1813	1564	938	SAVED	\N	2012-09-25 21:05:23.704676	ordnumber_201223
1814	1569	938	SAVED	\N	2012-09-25 21:05:30.505181	ordnumber_201224
1815	1756	938	SAVED	\N	2012-09-25 21:06:18.845728	ordnumber_201126
1816	1406	938	SAVED	\N	2012-09-25 21:07:30.002003	partnumber_--------
1817	1133	938	SAVED	\N	2012-09-26 15:48:14.504714	partnumber_014
1818	1406	938	SAVED	\N	2012-09-26 15:49:48.723106	partnumber_--------
1820	\N	1473	SAVED	\N	2012-10-08 15:27:17.986033	invnumber_
1823	1822	1473	SAVED	\N	2012-10-08 15:28:06.598012	partnumber_23456754
1824	223	1473	POSTED	\N	2012-10-08 15:29:42.881502	invnumber_65780
1825	223	1473	CANCELED	\N	2012-10-08 15:30:57.406484	invnumber_65780
1826	225	1473	POSTED	\N	2012-10-08 15:34:13.849523	invnumber_12
1827	226	1473	STORNO	\N	2012-10-08 15:34:30.332789	invnumber_Storno zu 12
1828	209	1473	POSTED	\N	2012-10-08 15:36:40.710464	invnumber_1
1829	210	1473	POSTED	\N	2012-10-08 15:37:08.331213	invnumber_2
1830	211	1473	POSTED	\N	2012-10-08 15:38:38.723311	invnumber_3
1831	212	1473	POSTED	\N	2012-10-08 15:39:05.27886	invnumber_4
1832	213	1473	POSTED	\N	2012-10-08 15:39:43.644456	invnumber_5
1833	214	1473	POSTED	\N	2012-10-08 15:40:13.178872	invnumber_6
1834	215	1473	POSTED	\N	2012-10-08 15:40:41.014104	invnumber_7
1835	216	1473	POSTED	\N	2012-10-08 15:41:08.761687	invnumber_8
1836	217	1473	POSTED	\N	2012-10-08 15:41:36.868185	invnumber_9
1837	1821	1473	SAVED	\N	2012-10-08 15:43:51.519737	vendornumber_70016
1838	227	1473	SAVED	Buchungsnummer = 227	2012-10-08 15:56:30.921004	ordnumber_
1839	1822	1473	SAVED	\N	2012-10-08 16:04:41.010161	partnumber_029
1843	231	1473	STORNO	\N	2012-10-09 08:58:55.609316	invnumber_Storno zu 10
1844	228	938	POSTED	\N	2012-10-09 09:52:10.252905	invnumber_11
1845	229	938	POSTED	\N	2012-10-09 09:52:37.638362	invnumber_12
1846	230	938	POSTED	\N	2012-10-09 09:53:01.750669	invnumber_14
1847	232	938	POSTED	\N	2012-10-09 10:02:59.682861	invnumber_oat528
1848	232	938	POSTED	\N	2012-10-09 10:36:16.121183	invnumber_oat528
1849	233	938	SAVED	Buchungsnummer = 233	2012-10-09 12:33:16.615807	ordnumber_
1850	1501	1473	DELETED	\N	2012-10-09 14:46:53.408872	ordnumber_--------
1851	1406	1473	DELETED	\N	2012-10-09 14:47:39.268647	partnumber_--------
1852	1111	1473	SAVED	\N	2012-10-09 14:50:48.524102	partnumber_008
1853	1111	1473	SAVED	\N	2012-10-09 14:51:10.231629	partnumber_008
1854	1111	1473	SAVED	\N	2012-10-09 14:51:21.948288	partnumber_008
1856	234	1473	SAVED	Buchungsnummer = 234	2012-10-09 15:35:42.329581	ordnumber_
1857	235	938	SAVED	Buchungsnummer = 235	2012-10-09 16:09:28.449282	ordnumber_
1858	236	938	SAVED	Buchungsnummer = 236	2012-10-09 16:43:43.809249	ordnumber_
1859	237	938	SAVED	Buchungsnummer = 237	2012-10-09 16:53:04.983829	ordnumber_
1860	238	938	SAVED	Buchungsnummer = 238	2012-10-09 16:55:21.998685	ordnumber_
1861	239	938	SAVED	Buchungsnummer = 239	2012-10-09 16:56:19.107075	ordnumber_
1862	240	938	SAVED	Buchungsnummer = 240	2012-10-09 16:57:23.268956	ordnumber_
1863	241	938	SAVED	Buchungsnummer = 241	2012-10-09 16:58:47.44105	ordnumber_
1864	242	938	SAVED	Buchungsnummer = 242	2012-10-09 16:59:53.901046	ordnumber_
1865	243	938	SAVED	Buchungsnummer = 243	2012-10-09 17:01:15.1033	ordnumber_
1866	244	938	SAVED	Buchungsnummer = 244	2012-10-09 17:02:19.919289	ordnumber_
1867	245	938	SAVED	Buchungsnummer = 245	2012-10-09 17:03:27.957492	ordnumber_
1868	246	938	SAVED	Buchungsnummer = 246	2012-10-09 17:11:10.270535	ordnumber_
1869	247	938	SAVED	Buchungsnummer = 247	2012-10-09 17:13:16.249728	ordnumber_
1870	227	1473	STORNO	\N	2012-10-09 21:06:02.140822	ordnumber_
1873	1754	1871	SAVED	\N	2012-11-15 14:20:14.498979	customernumber_10001
1875	1752	1871	SAVED	\N	2012-11-15 14:25:11.271208	partnumber_109
1877	1876	1871	SAVED	\N	2012-11-15 14:28:56.065721	ordnumber_1
1878	1876	1871	SCREENED	sales_order	2012-11-15 14:28:59.867199	ordnumber_1
1879	1876	1871	SAVED	\N	2012-11-15 14:30:11.898787	ordnumber_1
1880	1876	1871	SCREENED	sales_order	2012-11-15 14:30:17.465226	ordnumber_1
1882	1881	1871	SAVED	\N	2012-11-15 14:31:04.368911	donumber_1
1883	1881	1871	SCREENED	sales_delivery_order	2012-11-15 14:31:09.497953	ordnumber_1
1884	249	1871	PRINTED AND POSTED	\N	2012-11-15 14:31:30.569249	invnumber_16
1885	249	1871	SCREENED	invoice	2012-11-15 14:31:49.774101	ordnumber_1
1889	1888	1871	SAVED	\N	2012-11-15 14:40:20.887094	partnumber_1
1892	1891	1871	SAVED	\N	2012-11-15 14:44:56.005868	ordnumber_2
1893	1891	1871	SCREENED	sales_order	2012-11-15 14:44:59.766183	ordnumber_2
1894	1891	1871	SAVED	\N	2012-11-15 14:46:21.683429	ordnumber_2
1895	1891	1871	SCREENED	sales_order	2012-11-15 14:46:23.794953	ordnumber_2
1897	1896	1871	SAVED	\N	2012-11-15 14:47:30.101532	donumber_2
1899	1896	1871	SAVED	\N	2012-11-15 14:48:01.469604	donumber_2
1901	1896	1871	SAVED	\N	2012-11-15 14:48:22.33699	donumber_2
1903	1896	1871	SCREENED	sales_delivery_order	2012-11-15 14:48:36.853602	ordnumber_
1904	\N	1871	SCREENED	invoice	2012-11-15 14:49:00.42511	ordnumber_
1905	\N	1871	SCREENED	invoice	2012-11-15 14:49:46.916333	ordnumber_
1917	1915	1871	SAVED	sales_order	2014-11-08 12:32:52.874223	ordnumber_3
1919	1918	1871	SAVED	\N	2014-11-08 12:33:36.231037	donumber_3
1921	1920	1871	SAVED	\N	2014-11-08 12:41:09.248331	partnumber_2
1923	1922	1871	SAVED	sales_quotation	2014-11-08 12:41:19.341936	quonumber_1
1925	250	1871	PRINTED AND POSTED	\N	2014-11-08 12:54:54.807765	invnumber_17
1926	250	1871	SCREENED	invoice	2014-11-08 12:55:48.063098	invnumber_17
1928	1927	1871	SAVED	\N	2014-11-08 13:19:43.853845	partnumber_Monteur A
1930	1929	1871	SAVED	\N	2014-11-08 13:20:34.861185	partnumber_Standard Pool-Wartung
1932	1931	1871	SAVED	sales_order	2014-11-08 13:22:54.818479	ordnumber_4
1934	1933	1871	SAVED	\N	2014-11-08 13:23:43.908271	donumber_4
1935	1933	1871	SCREENED	pick_list	2014-11-08 13:23:45.203077	donumber_4
1936	1922	1871	SAVED	sales_quotation	2014-11-08 13:52:02.945112	quonumber_1
1937	1922	1871	DELETED	\N	2014-11-08 17:35:31.782029	ordnumber_
1938	1918	1871	DELETED	\N	2014-11-08 17:36:04.031278	donumber_3
1939	1933	1871	DELETED	\N	2014-11-08 17:36:30.383721	donumber_4
1940	250	1871	DELETED	\N	2014-11-08 17:37:14.49575	invnumber_17
1941	1920	1871	DELETED	part	2015-12-14 07:40:33.342236	partnumber_2
1944	1943	1871	SAVED	purchase_order	2017-05-17 11:50:43.306564	ordnumber_1
1945	251	1871	POSTED	invoice	2017-11-15 07:47:57.395131	invnumber_18
1947	1946	1871	SAVED	part	2017-11-15 10:25:07.647656	partnumber_DNG
1948	252	1871	POSTED	invoice	2017-11-15 10:26:00.25759	invnumber_12
1949	251	1871	PAYMENT POSTED	invoice	2017-12-06 10:31:41.750631	invnumber_18
1952	249	1871	SCREENED	invoice	2019-01-03 12:11:00.879241	invnumber_16
1953	249	1871	SCREENED	invoice	2019-01-03 12:12:04.615279	invnumber_16
\.


--
-- Data for Name: inventory; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.inventory (warehouse_id, parts_id, oe_id, delivery_order_items_stock_id, shippingdate, employee_id, itime, mtime, bin_id, qty, trans_id, trans_type_id, project_id, chargenumber, comment, bestbefore, id, invoice_id) FROM stdin;
969	1107	1441	\N	2012-09-12	1213	2012-05-01 12:00:00	2012-10-08 15:01:59.878237	971	280.00000	1452	945	\N		eingelagert	\N	20	\N
969	1100	1441	\N	2012-09-12	1213	2012-05-01 12:00:00	2012-10-08 15:01:59.878237	970	550000.00000	1453	945	\N		eingelagert	\N	21	\N
969	1103	1441	\N	2012-09-12	1213	2012-05-01 12:00:00	2012-10-08 15:01:59.878237	972	530.00000	1454	945	\N		eingelagert	\N	22	\N
969	1105	1441	\N	2012-09-12	1213	2012-05-01 12:00:00	2012-10-08 15:01:59.878237	973	180.00000	1455	945	\N		eingelagert	\N	23	\N
969	1183	1503	\N	2012-09-12	938	2012-06-11 12:00:00	2012-10-08 15:01:59.878237	989	1.00000	1507	945	\N		eingelagert	\N	34	\N
969	1180	1503	\N	2012-09-12	938	2012-06-11 12:00:00	2012-10-08 15:01:59.878237	990	1.00000	1508	945	\N		eingelagert	\N	35	\N
969	1404	1512	\N	2012-09-12	938	2012-07-09 12:00:00	2012-10-08 15:01:59.878237	991	1.00000	1515	945	\N		eingelagert	\N	36	\N
969	1174	1525	\N	2012-09-12	938	2012-08-13 12:00:00	2012-10-08 15:01:59.878237	992	1.00000	1528	945	\N		eingelagert	\N	37	\N
969	1144	1529	\N	2012-09-12	1213	2012-08-13 12:00:00	2012-10-08 15:01:59.878237	974	330000.00000	1532	945	\N		eingelagert	\N	38	\N
969	1117	1540	\N	2012-09-12	1213	2012-09-10 12:00:00	2012-10-08 15:01:59.878237	977	29.00000	1547	945	\N		eingelagert	\N	39	\N
969	1123	1540	\N	2012-09-12	1213	2012-09-10 12:00:00	2012-10-08 15:01:59.878237	979	9.00000	1548	945	\N		eingelagert	\N	40	\N
969	1119	1540	\N	2012-09-12	1213	2012-09-10 12:00:00	2012-10-08 15:01:59.878237	976	4.00000	1549	945	\N		eingelagert	\N	41	\N
969	1121	1540	\N	2012-09-12	1213	2012-09-10 12:00:00	2012-10-08 15:01:59.878237	978	4.00000	1550	945	\N		eingelagert	\N	42	\N
969	1115	1540	\N	2012-09-12	1213	2012-09-10 12:00:00	2012-10-08 15:01:59.878237	975	145.00000	1551	945	\N		eingelagert	\N	43	\N
969	1147	1572	\N	2012-09-12	938	2012-11-30 12:00:00	2012-10-08 15:01:59.878237	993	70.00000	1577	945	\N		eingelagert	\N	44	\N
969	1149	1572	\N	2012-09-12	938	2012-11-30 12:00:00	2012-10-08 15:01:59.878237	994	65.00000	1578	945	\N		eingelagert	\N	45	\N
969	1152	1572	\N	2012-09-12	938	2012-11-30 12:00:00	2012-10-08 15:01:59.878237	995	260.00000	1579	945	\N		eingelagert	\N	46	\N
969	1581	1586	\N	2012-09-12	1213	2012-09-12 12:00:00	2012-10-08 15:01:59.878237	996	6.00000	1590	945	\N		eingelagert	\N	47	\N
969	1581	1586	\N	2012-09-12	1213	2012-09-12 12:00:00	2012-10-08 15:01:59.878237	997	6.00000	1591	945	\N		eingelagert	\N	48	\N
969	1135	1476	\N	2012-09-12	1213	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	988	1.00000	1483	945	\N		eingelagert	\N	30	\N
958	1098	1484	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	963	1.00000	1488	945	\N		eingelagert	\N	31	\N
958	1098	1484	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	964	1.00000	1489	945	\N		eingelagert	\N	32	\N
969	1742	1746	\N	2012-09-21	1213	2012-06-08 12:00:00	2012-10-08 15:23:44.408155	998	1.00000	1749	945	\N		eingelagert	\N	107	\N
956	1093	1412	\N	2012-09-12	938	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	957	4500.00000	1415	945	\N		eingelagert	\N	13	\N
969	1137	1419	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	980	40.00000	1426	945	\N		eingelagert	\N	14	\N
969	1137	1419	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	982	40.00000	1428	945	\N		eingelagert	\N	16	\N
969	1137	1419	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	981	40.00000	1427	945	\N		eingelagert	\N	15	\N
969	1137	1419	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	983	40.00000	1429	945	\N		eingelagert	\N	17	\N
969	1137	1419	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	984	40.00000	1430	945	\N		eingelagert	\N	18	\N
956	1093	1494	\N	2012-09-12	1213	2012-01-13 12:00:00	2012-10-08 15:01:59.878237	957	12000.00000	1497	945	\N		eingelagert	\N	33	\N
969	1100	\N	\N	2012-08-30	938	2012-08-30 10:20:51.049728	2012-10-08 15:02:17.908092	970	50000.00000	1198	945	\N		eingelagert	\N	1	\N
969	1107	\N	\N	2012-08-30	938	2012-08-30 10:24:45.342919	2012-10-08 15:02:17.908092	971	20.00000	1199	945	\N		eingelagert	\N	2	\N
969	1103	\N	\N	2012-08-30	938	2012-08-30 10:25:13.748993	2012-10-08 15:02:17.908092	972	70.00000	1200	945	\N		eingelagert	\N	3	\N
969	1105	\N	\N	2012-08-30	938	2012-08-30 10:25:38.107343	2012-10-08 15:02:17.908092	973	20.00000	1201	945	\N		eingelagert	\N	4	\N
969	1144	\N	\N	2012-08-30	938	2012-08-30 10:26:38.270782	2012-10-08 15:02:17.908092	974	20000.00000	1202	945	\N		eingelagert	\N	5	\N
956	1091	\N	\N	2012-08-30	938	2012-08-30 10:28:47.04193	2012-10-08 15:02:17.908092	957	3000.00000	1203	945	\N		eingelagert	\N	6	\N
956	1093	\N	\N	2012-08-30	938	2012-08-30 10:28:59.508877	2012-10-08 15:02:17.908092	957	500.00000	1204	945	\N		eingelagert	\N	7	\N
969	1115	\N	\N	2012-08-30	938	2012-08-30 10:30:16.154689	2012-10-08 15:02:17.908092	975	5.00000	1205	945	\N		eingelagert	\N	8	\N
969	1119	\N	\N	2012-08-30	938	2012-08-30 10:30:39.865939	2012-10-08 15:02:17.908092	976	1.00000	1206	945	\N		eingelagert	\N	9	\N
969	1117	\N	\N	2012-08-30	938	2012-08-30 10:31:10.054278	2012-10-08 15:02:17.908092	977	1.00000	1207	945	\N		eingelagert	\N	10	\N
969	1121	\N	\N	2012-08-30	938	2012-08-30 10:31:27.06686	2012-10-08 15:02:17.908092	978	1.00000	1208	945	\N		eingelagert	\N	11	\N
969	1123	\N	\N	2012-08-30	938	2012-08-30 10:31:41.707167	2012-10-08 15:02:17.908092	979	1.00000	1209	945	\N		eingelagert	\N	12	\N
969	1742	\N	\N	2012-10-08	1473	2012-06-29 12:00:00	2012-10-08 15:22:34.698576	998	-1.00000	1819	948	\N		verbraucht Juni	\N	108	\N
969	1137	\N	\N	2012-06-29	938	2012-02-29 12:00:00	2012-10-08 15:25:29.150539	981	-40.00000	1683	948	\N		verbraucht Februar	\N	62	\N
956	1091	\N	\N	2012-04-30	938	2012-04-30 12:00:00	2012-10-08 14:46:43.407423	957	-600.00000	1673	948	\N		verbraucht April	\N	52	\N
956	1091	\N	\N	2012-02-29	938	2012-02-29 12:00:00	2012-10-08 14:46:43.407423	957	-600.00000	1671	948	\N		verbraucht Februar	\N	50	\N
956	1093	\N	\N	2012-04-30	938	2012-04-30 12:00:00	2012-10-08 14:46:43.407423	957	-3400.00000	1680	948	\N		verbraucht April	\N	59	\N
969	1137	\N	\N	2012-04-30	938	2012-04-30 12:00:00	2012-10-08 14:46:43.407423	983	-40.00000	1685	948	\N		verbraucht April	\N	64	\N
956	1091	\N	\N	2012-03-30	938	2012-03-30 12:00:00	2012-10-08 14:46:43.407423	957	-600.00000	1672	948	\N		verbraucht März	\N	51	\N
956	1093	\N	\N	2012-03-30	938	2012-03-30 12:00:00	2012-10-08 14:46:43.407423	957	-3400.00000	1679	948	\N		verbraucht März	\N	58	\N
969	1137	\N	\N	2012-03-30	938	2012-03-30 12:00:00	2012-10-08 14:46:43.407423	982	-40.00000	1684	948	\N		verbraucht März	\N	63	\N
956	1091	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	957	-600.00000	1674	948	\N		verbraucht Mai	\N	53	\N
956	1093	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	957	-3400.00000	1681	948	\N		verbraucht Mai	\N	60	\N
969	1137	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	984	-40.00000	1686	948	\N		verbraucht Mai	\N	65	\N
969	1100	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	970	-300000.00000	1692	948	\N		verbraucht Juni	\N	71	\N
969	1103	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	972	-300.00000	1693	948	\N		verbraucht Juni	\N	72	\N
969	1105	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	973	-100.00000	1694	948	\N		verbraucht Juni	\N	73	\N
958	1098	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	964	-1.00000	1700	948	\N		verbraucht Juli	\N	79	\N
958	1111	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	961	-1.00000	1701	948	\N		verbraucht Juli	\N	80	\N
958	1111	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	962	-1.00000	1702	948	\N		verbraucht Juli	\N	81	\N
969	1103	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	972	-300.00000	1689	948	\N		verbraucht Mai	\N	68	\N
956	1093	\N	\N	2012-01-31	938	2012-01-31 12:00:00	2012-10-08 14:46:43.407423	957	-3.40000	1675	948	\N		verbraucht Januar	\N	54	\N
956	1093	\N	\N	2012-02-29	938	2012-02-29 12:00:00	2012-10-08 14:46:43.407423	957	-3400.00000	1678	948	\N		verbraucht Februar	\N	57	\N
969	1107	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	971	-150.00000	1695	948	\N		verbraucht Juni	\N	74	\N
958	1098	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	963	-1.00000	1696	948	\N		verbraucht Juni	\N	75	\N
958	1111	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	959	-1.00000	1697	948	\N		verbraucht Juni	\N	76	\N
969	1117	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	977	-15.00000	1719	948	\N		verbraucht September	\N	98	\N
969	1144	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	974	-200000.00000	1712	948	\N		verbraucht September	\N	91	\N
969	1115	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	975	-0.07500	1713	948	\N		verbraucht September	\N	92	\N
958	1111	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	960	-1.00000	1698	948	\N		verbraucht Juni	\N	77	\N
969	1133	\N	\N	2012-06-29	938	2012-06-29 12:00:00	2012-10-08 14:46:43.407423	986	-1.00000	1699	948	\N		verbraucht Juni	\N	78	\N
969	1119	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	976	-0.00250	1714	948	\N		verbraucht September	\N	93	\N
969	1117	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	977	-0.01500	1715	948	\N		verbraucht September	\N	94	\N
969	1121	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	978	-2.50000	1716	948	\N		verbraucht September	\N	95	\N
969	1115	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	975	-75.00000	1717	948	\N		verbraucht September	\N	96	\N
969	1119	\N	\N	2012-09-28	938	2012-09-28 12:00:00	2012-10-08 14:46:43.407423	976	-2.50000	1718	948	\N		verbraucht September	\N	97	\N
969	1142	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	985	-1.00000	1687	948	\N		verbraucht Mai	\N	66	\N
969	1100	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	970	-300000.00000	1688	948	\N		verbraucht Mai	\N	67	\N
969	1105	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	973	-100.00000	1690	948	\N		verbraucht Mai	\N	69	\N
956	1093	\N	\N	2012-01-31	938	2012-01-31 12:00:00	2012-10-08 14:46:43.407423	957	-3400.00000	1676	948	\N		verbraucht Januar	\N	55	\N
956	1093	\N	\N	2012-01-31	938	2012-01-31 12:00:00	2012-10-08 14:46:43.407423	957	3.40000	1677	945	\N		Januar Korrektur	\N	56	\N
969	1137	\N	\N	2012-01-31	938	2012-01-31 12:00:00	2012-10-08 14:46:43.407423	980	-40.00000	1682	948	\N		verbraucht Januar	\N	61	\N
956	1091	\N	\N	2012-01-31	938	2012-01-31 12:00:00	2012-10-08 14:46:43.407423	957	-600.00000	1670	948	\N		verbraucht Januar	\N	49	\N
969	1133	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	987	-1.00000	1703	948	\N		verbraucht Juli	\N	82	\N
969	1183	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	989	-1.00000	1704	948	\N		verbraucht Juli	\N	83	\N
969	1180	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	990	-1.00000	1705	948	\N		verbraucht Juli	\N	84	\N
969	1135	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	988	-1.00000	1706	948	\N		verbraucht Juli	\N	85	\N
969	1404	\N	\N	2012-07-31	938	2012-07-31 12:00:00	2012-10-08 14:46:43.407423	991	-1.00000	1707	948	\N		verbraucht Juli	\N	86	\N
969	1174	\N	\N	2012-08-31	938	2012-08-31 12:00:00	2012-10-08 14:46:43.407423	992	-1.00000	1708	948	\N		verbraucht August	\N	87	\N
969	1144	\N	\N	2012-08-31	938	2012-08-31 12:00:00	2012-10-08 14:46:43.407423	974	-150000.00000	1709	948	\N		verbraucht August	\N	88	\N
969	1581	\N	\N	2012-08-31	938	2012-08-31 12:00:00	2012-10-08 14:46:43.407423	996	-6.00000	1710	948	\N		verbraucht August	\N	89	\N
969	1581	\N	\N	2012-08-31	938	2012-08-31 12:00:00	2012-10-08 14:46:43.407423	997	-6.00000	1711	948	\N		verbraucht August	\N	90	\N
969	1115	\N	\N	2012-10-31	938	2012-10-31 12:00:00	2012-10-08 14:46:43.407423	975	-74.92500	1720	948	\N		verbraucht Oktober	\N	99	\N
969	1117	\N	\N	2012-10-31	938	2012-10-31 12:00:00	2012-10-08 14:46:43.407423	977	-14.98500	1721	948	\N		verbraucht Oktober	\N	100	\N
969	1119	\N	\N	2012-10-31	938	2012-10-31 12:00:00	2012-10-08 14:46:43.407423	976	-2.49750	1722	948	\N		verbraucht Oktober	\N	101	\N
969	1121	\N	\N	2012-10-31	938	2012-10-31 12:00:00	2012-10-08 14:46:43.407423	978	-2.50000	1723	948	\N		verbraucht Oktober	\N	102	\N
969	1123	\N	\N	2012-10-31	938	2012-10-31 12:00:00	2012-10-08 14:46:43.407423	979	-10.00000	1724	948	\N		verbraucht Oktober	\N	103	\N
969	1147	\N	\N	2012-11-30	938	2012-11-30 12:00:00	2012-10-08 14:46:43.407423	993	-70.00000	1725	948	\N		verbraucht November	\N	104	\N
969	1149	\N	\N	2012-11-30	938	2012-11-30 12:00:00	2012-10-08 14:46:43.407423	994	-65.00000	1726	948	\N		verbraucht November	\N	105	\N
969	1152	\N	\N	2012-11-30	938	2012-11-30 12:00:00	2012-10-08 14:46:43.407423	995	-260.00000	1727	948	\N		verbraucht November	\N	106	\N
969	1107	\N	\N	2012-05-31	938	2012-05-31 12:00:00	2012-10-08 14:46:43.407423	971	-150.00000	1691	948	\N		verbraucht Mai	\N	70	\N
958	1111	1459	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	959	1.00000	1465	945	\N		eingelagert	\N	24	\N
958	1111	1459	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	960	1.00000	1466	945	\N		eingelagert	\N	25	\N
958	1111	1459	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	961	1.00000	1467	945	\N		eingelagert	\N	26	\N
958	1111	1459	\N	2012-09-12	938	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	962	1.00000	1468	945	\N		eingelagert	\N	27	\N
969	1133	1476	\N	2012-09-12	1213	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	986	1.00000	1481	945	\N		eingelagert	\N	28	\N
969	1133	1476	\N	2012-09-12	1213	2012-05-14 12:00:00	2012-10-08 15:01:59.878237	987	1.00000	1482	945	\N		eingelagert	\N	29	\N
969	1142	1434	\N	2012-09-12	938	2012-05-01 12:00:00	2012-10-08 15:01:59.878237	985	1.00000	1437	945	\N		eingelagert	\N	19	\N
958	1888	\N	\N	2012-11-15	1871	2012-11-15 14:42:37.855921	\N	959	100.00000	1890	945	\N			\N	109	\N
958	1888	1896	\N	2012-11-15	1871	2012-11-15 14:48:22.490264	\N	959	-3.00000	1902	955	\N		\N	\N	110	\N
\.


--
-- Data for Name: invoice; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.invoice (id, trans_id, parts_id, description, qty, allocated, sellprice, fxsellprice, discount, assemblyitem, project_id, deliverydate, serialnumber, itime, mtime, pricegroup_id, ordnumber, transdate, cusordnumber, unit, base_qty, subtotal, longdescription, marge_total, marge_percent, lastcost, price_factor_id, price_factor, marge_price_factor, donumber, "position", active_price_source, active_discount_source) FROM stdin;
1	158	1192	Design "OIDABLU"	-1	0	28037.38000	30000.00000	0	f	\N	\N		2012-09-12 11:31:38.368947	2015-02-01 20:53:51.235169	\N	\N	\N	\N	psch	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
14	167	1183	Lautsprecheranlage	-1	0	67226.89000	80000.00000	0	f	1020	\N		2012-09-12 12:40:21.584179	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
16	168	1404	Anker	-1	0	70000.00000	70000.00000	0	f	1020	\N		2012-09-12 12:51:04.811484	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
29	177	1154	Malerarbeiten	-50	0	1092.44000	1300.00000	0	f	1020	\N		2012-09-12 14:34:33.16189	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Tag	-50	f		\N	\N	\N	\N	\N	\N	\N	1		
31	179	1185	"schiffseigene Brauerei" + Einbau	-1	0	168067.23000	200000.00000	0	f	\N	\N		2012-09-12 14:41:19.85977	2015-02-01 20:53:51.235169	\N	\N	\N	\N	psch	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
35	181	1581	Rettungsboot	-12	0	150000.00000	150000.00000	0	f	\N	\N		2012-09-12 14:56:01.117455	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	-12	f		\N	\N	\N	\N	\N	\N	\N	1		
40	206	1742	Anti-Piracy SystemXT 4000	-1	0	522730.00000	650000.00000	0	f	\N	\N		2012-09-21 14:43:12.462592	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
42	208	1758	OIDABLU	1	0	350000000.00000	350000000.00000	0	f	\N	\N		2012-09-21 15:31:12.755264	2015-02-01 20:53:51.235169	\N		\N		Stck	1	f		350000000.00000	100.00000	0.00000	\N	\N	\N	\N	1		
43	209	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:32.645385	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
44	210	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.068754	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
45	211	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.265917	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
46	212	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.365752	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
47	213	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.491077	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
48	214	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.596295	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
49	215	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.715663	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
50	216	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:33.819959	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
51	217	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 15:36:34.018694	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
52	222	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-09-21 16:20:17.548256	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
53	223	1822	Kronleuchter Deluxe 4000	-1	0	120000.00000	120000.00000	0	f	\N	\N		2012-10-08 15:29:43.023031	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	-1	f		\N	\N	\N	\N	\N	\N	\N	1		
54	224	1822	Kronleuchter Deluxe 4000	1	0	120000.00000	120000.00000	0	f	\N	\N		2012-10-08 15:30:57.901724	2015-02-01 20:53:51.235169	\N	\N	\N	\N	Stck	1	f		\N	\N	\N	\N	\N	\N	\N	1		
57	228	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-10-09 08:49:39.436806	2015-02-01 20:53:51.235169	\N	022012	2011-12-02		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
58	229	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-12-12 12:48:18.476016	2015-02-01 20:53:51.235169	\N	022012	2011-12-02		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
59	230	1752	Vermietung Baudock A1	1	\N	20000.00000	20000.00000	0	f	\N	\N		2012-12-12 12:48:18.77791	2015-02-01 20:53:51.235169	\N	022012	2011-12-02		Monat	1	f		20000.00000	100.00000	0.00000	\N	1.00000	1.00000	\N	1		
60	231	1752	Vermietung Baudock A1	-1	0	20000.00000	20000.00000	0	f	\N	\N		2012-10-09 08:58:55.226341	2015-02-01 20:53:51.235169	\N	022012	02.12.2011		Monat	-1	f		0.00000	0.00000	0.00000	\N	\N	1.00000	\N	1		
61	249	1752	Vermietung Baudock A1	1	0	18000.00000	20000.00000	0.100000001	f	\N	\N		2012-11-15 14:31:30.163919	2015-02-01 20:53:51.235169	\N	1	15.11.2012		Monat	1	f		18000.00000	100.00000	0.00000	\N	\N	\N	\N	1		
2	159	1093	Schiffbaustahl 2HGr50 (Qualitätstechnik)	-4500	0	420.17000	500.00000	0	f	1020	\N		2012-09-12 11:46:35.764079	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-4500	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	\N	\N	\N	\N	\N	\N	\N	1		
3	160	1137	Rohrleitungen	-200	0	5882.35000	7000.00000	0	f	1020	\N		2012-09-12 11:51:00.529905	2015-02-01 20:53:52.619843	\N	\N	\N	\N	km	-200	f	<p>vorgefertigte Rohrleitungen</p>	\N	\N	\N	\N	\N	\N	\N	1		
4	161	1142	Elektronik-Pack OIDA/Igel	-1	0	823529.41000	980000.00000	0	f	1020	\N		2012-09-12 11:55:21.123487	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-1	f	<p>Eigen in Auftrag gegebenes Produktpaket aus Kabelschächten, -führungen, Stecker und -leisten</p>	\N	\N	\N	\N	\N	\N	\N	1		
5	162	1107	Fernmelde-Schiffskabel FMKHC	-280	0	857.14000	1020.00000	0	f	\N	\N		2012-09-12 12:00:50.338662	2015-02-01 20:53:52.619843	\N	\N	\N	\N	km	-280	f	<p>Halogen geben, feuerbeständiges Marinekommunikationskabel mit screend Standard</p>	\N	\N	\N	\N	\N	\N	\N	1		
6	162	1100	Kabel und Leitungen H03VV-F	-550	0	336.13000	400.00000	0	f	\N	\N		2012-09-12 12:00:50.338662	2015-02-01 20:53:52.619843	\N	\N	\N	\N	km	-550000	f	<p>H03VV-F 3x0,75 - Leichte PVC-Schlauchleitung<br />feindrähtig, Ring 50 Meter<br />Farbe: schwarz<br />Nach DIN VDE 0281<br /></p>	\N	\N	\N	\N	\N	\N	\N	2		
7	162	1103	Kabel und Leitungen SiHF-J	-530	0	2016.81000	2400.00000	0	f	\N	\N		2012-09-12 12:00:50.338662	2015-02-01 20:53:52.619843	\N	\N	\N	\N	km	-530	f	<p>feindrähtiger Kupferlitzenleiter verzinnt, Farbe: rot-braun, Flammwidrig nach VDE 0472 Teil 804 Prüfart C</p>	\N	\N	\N	\N	\N	\N	\N	3		
8	162	1105	Starkstrom-Schiffskabel MPRXCX 	-180	0	4201.68000	5000.00000	0	f	\N	\N		2012-09-12 12:00:50.338662	2015-02-01 20:53:52.619843	\N	\N	\N	\N	km	-180	f	<p>Cu-Litze blank, Verlitzung nach Klasse 2<br />Isolation aus vernetztem XLPE<br />Außenmantel Polyolefin, Farbe Schwarz</p>	\N	\N	\N	\N	\N	\N	\N	4		
9	163	1111	Dieselmotor 9M43D	-4	0	4201680.67000	5000000.00000	0	f	1020	\N		2012-09-12 12:11:50.790617	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-4	f	<p>9.000 kW (12237 PS)</p>	\N	\N	\N	\N	\N	\N	\N	1		
10	164	1133	SRP Propeller	-2	0	571428.57000	680000.00000	0	f	1020	\N		2012-09-12 12:16:58.361196	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-2	f	<p>5-Blatt-Festpropeller, Balance-Ruder</p>	\N	\N	\N	\N	\N	\N	\N	1		
11	164	1135	SST Steuer und Regelsystem	-1	0	436974.79000	520000.00000	0	f	1020	\N		2012-09-12 12:16:58.361196	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-1	f	<p>computerunterstütztes, ferngesteuertes Joystick-System</p>	\N	\N	\N	\N	\N	\N	\N	2		
12	165	1098	Elektrischer Propellermotor S-12/5	-2	0	6722689.08000	8000000.00000	0	f	\N	\N		2012-09-12 12:17:13.904978	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-2	f	<p>12,5 MW; Wellenanlage<br />Maschinenleistung: 12.500 kW (16996 PS)</p>	\N	\N	\N	\N	\N	\N	\N	1		
13	166	1093	Schiffbaustahl 2HGr50 (Qualitätstechnik)	-12000	0	353.08000	420.17000	0	f	1020	\N		2012-09-12 12:34:31.518335	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-12000	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	\N	\N	\N	\N	\N	\N	\N	1		
15	167	1180	SecuritySystem	-1	0	126050.42000	150000.00000	0	f	1020	\N		2012-09-12 12:40:21.584179	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-1	f	<p>Alarmanlagen, Messsensoren, Videoüberwachungsanlage</p>	\N	\N	\N	\N	\N	\N	\N	2		
17	169	1156	B&C Glasprojekt "OIDAblu"	-1	0	294117.65000	350000.00000	0	f	1020	\N		2012-09-12 14:03:23.525778	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>Außen und Innenverglasung komplett<br />insgesamt 4600 m² Glas (Dünn-, Float-, Panzer-, Weiß-, Spiegelglas)<br />Plus Mitarbeiterkosten</p>	\N	\N	\N	\N	\N	\N	\N	1		
18	170	1174	Paket Schiffsinnenbau "Kule"	-1	0	840336.13000	1000000.00000	0	f	\N	\N		2012-09-12 14:07:26.811402	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>Feuerschutztüren, Schichtstoffplatten HPL, Furniere MIneralwerkstoff, Wand- und Deckenpaneel</p>	\N	\N	\N	\N	\N	\N	\N	1		
19	171	1144	Ultimate Mineralwolle	-330000	0	2.44000	2.90000	0	f	1020	\N		2012-09-12 14:08:20.092458	2015-02-01 20:53:52.619843	\N	\N	\N	\N	m²	-330000	f	<p>Hochleistungsdämmstoff für Wärme- und Schalldämmung</p>	\N	\N	\N	\N	\N	\N	\N	1		
20	172	1158	Sanitäre Anlagen + Wellnessbereiche Rundum-Sorglos-Paket	-1	0	3907563.03000	4650000.00000	0	f	\N	\N		2012-09-12 14:14:06.926166	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>1600 Toiletten, 1500 Duschen, 1700 Waschbecken, sanitäre Einrichtung für Luxussuiten, Saunabereiche, Wellnessbereiche</p>	\N	\N	\N	\N	\N	\N	\N	1		
21	173	1117	Siloblau Fassade AE 1730	-29	0	6672.27000	7940.00000	0	f	1020	\N		2012-09-12 14:16:01.336668	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-29	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	\N	\N	\N	\N	\N	\N	\N	1		
22	173	1123	Silogelb Fassade AF 2550	-9	0	6672.27000	7940.00000	0	f	1020	\N		2012-09-12 14:16:01.336668	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-9	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	\N	\N	\N	\N	\N	\N	\N	2		
23	173	1119	Silorot Fassade AF 2550	-4	0	6672.27000	7940.00000	0	f	1020	\N		2012-09-12 14:16:01.336668	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-4	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	\N	\N	\N	\N	\N	\N	\N	3		
24	173	1121	Siloschwarz fassade A0 000	-4	0	6672.27000	7940.00000	0	f	1020	\N		2012-09-12 14:16:01.336668	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-4	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	\N	\N	\N	\N	\N	\N	\N	4		
25	173	1115	Siloweiß Fassade AF 5040	-145	0	4453.78000	5300.00000	0	f	1020	\N		2012-09-12 14:16:01.336668	2015-02-01 20:53:52.619843	\N	\N	\N	\N	t	-145	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	\N	\N	\N	\N	\N	\N	\N	5		
27	175	1161	Innenausbau "Veranstaltungs- und Verpflegungsräumeräume"	-1	0	4453781.51000	5300000.00000	0	f	\N	\N		2012-09-12 14:26:50.138796	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>Schiffsinnenbau der Veranstaltungsräume: 4D Kino, Casino, 4 Discotheken, 15 Restaurants, Crewkantine, Theatrium, Messehalle, 11 Bars</p>	\N	\N	\N	\N	\N	\N	\N	1		
28	176	1167	Innenausbau "Passagiere + Gänge"	-1	0	1764705.88000	2100000.00000	0	f	1020	\N		2012-09-12 14:30:44.163604	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>Schiffsinnenbau: alle 1096 Passagierkabinen, Gänge und Treppenhäuser</p>	\N	\N	\N	\N	\N	\N	\N	1		
30	178	1164	Innenausbau "Crew und Luxus"	-1	0	1411764.71000	1680000.00000	0	f	\N	\N		2012-09-12 14:38:20.675653	2015-02-01 20:53:52.619843	\N	\N	\N	\N	psch	-1	f	<p>Schiffsinnenbau &quot;Crew und Luxus&quot;: Ausbau des Crewbereichs mit 600 Crew Kabinen, 3 Kapitänskabinen, Eine Discothek und eine Bar extra für die Crew + Luxussuiten (23)</p>	\N	\N	\N	\N	\N	\N	\N	1		
32	180	1147	Palme	-70	0	234.11000	250.50000	0	f	\N	\N		2012-09-12 14:44:44.722246	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-70	f	<p>blaue Hesperidenpalme, stabilisiert</p>	\N	\N	\N	\N	\N	\N	\N	1		
33	180	1149	Zypresse	-65	0	98.13000	105.00000	0	f	\N	\N		2012-09-12 14:44:44.722246	2015-02-01 20:53:52.619843	\N	\N	\N	\N	Stck	-65	f	<p>stabilisiert</p>	\N	\N	\N	\N	\N	\N	\N	2		
34	180	1152	Hecke	-260	0	3.36000	3.60000	0	f	\N	\N		2012-09-12 14:44:44.722246	2015-02-01 20:53:52.619843	\N	\N	\N	\N	m²	-260	f	<p>stabilisiert</p>	\N	\N	\N	\N	\N	\N	\N	3		
55	225	1147	Palme	1	-1	120.00000	120.00000	0	f	\N	\N		2012-10-08 15:34:13.374781	2015-02-01 20:53:52.619843	\N		\N		Stck	1	f	<p>blaue Hesperidenpalme, stabilisiert</p>	-114.11000	-95.09000	234.11000	\N	\N	\N	\N	1		
56	226	1147	Palme	-1	1	120.00000	120.00000	0	f	\N	\N		2012-10-08 15:34:30.042286	2015-02-01 20:53:52.619843	\N		\N		Stck	-1	f	<p>blaue Hesperidenpalme, stabilisiert</p>	0.00000	0.00000	234.11000	\N	\N	\N	\N	1		
63	252	1946	Dinge	-10	0	50.00000	50.00000	0	f	\N	\N		2017-11-15 10:26:00.183822	2017-11-15 10:26:00.183822	\N	\N	\N	\N	Stck	-10	f		\N	\N	\N	942	10.00000	10.00000	\N	1		
64	252	1946	Dinge	-5	0	50.00000	50.00000	0	f	\N	\N		2017-11-15 10:26:00.183822	2017-11-15 10:26:00.183822	\N	\N	\N	\N	Stck	-5	f		\N	\N	\N	942	10.00000	10.00000	\N	2	master_data/lastcost	
\.


--
-- Data for Name: language; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.language (id, description, template_code, article_code, itime, mtime, output_numberformat, output_dateformat, output_longdates) FROM stdin;
\.


--
-- Data for Name: leads; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.leads (id, lead) FROM stdin;
\.


--
-- Data for Name: letter; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.letter (id, customer_id, letternumber, subject, greeting, body, employee_id, salesman_id, itime, mtime, date, reference, intnotes, cp_id, vendor_id) FROM stdin;
\.


--
-- Data for Name: letter_draft; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.letter_draft (id, customer_id, cp_id, letternumber, date, intnotes, reference, subject, greeting, body, employee_id, salesman_id, itime, mtime, vendor_id) FROM stdin;
\.


--
-- Data for Name: makemodel; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.makemodel (parts_id, model, itime, mtime, lastcost, lastupdate, sortorder, make, id) FROM stdin;
1325		2012-09-12 15:45:14.073777	\N	3.27000	2012-09-12	\N	1323	129
1154		2012-09-12 15:46:05.595233	\N	1008.40000	2012-09-12	\N	1052	130
1156		2012-09-12 15:46:27.153693	\N	294117.65000	2012-09-12	\N	1035	131
1158		2012-09-12 15:47:17.323244	\N	3907563.03000	2012-09-12	\N	1039	132
1161		2012-09-12 15:47:55.224391	\N	4453781.51000	2012-09-12	\N	1041	133
1164		2012-09-12 15:48:27.302392	\N	1411764.71000	2012-09-12	\N	1043	134
1167		2012-09-12 15:49:06.549545	\N	1764705.88000	2012-09-12	\N	1059	135
1192		2012-09-12 15:50:24.27276	\N	28037.38000	2012-09-12	\N	1190	137
1147		2012-09-12 15:52:32.22978	\N	234.11000	2012-09-12	\N	1085	138
1149		2012-09-12 15:53:13.913214	\N	98.13000	2012-09-12	\N	1085	139
1152		2012-09-12 15:54:44.682034	\N	3.36000	2012-09-12	\N	1085	140
1121		2012-09-17 12:23:39.351525	\N	6672.27000	2012-09-12	\N	1062	141
1404		2012-09-12 11:40:06.896653	\N	70000.00000	2012-09-12	\N	1401	68
1581		2012-09-12 14:48:43.764698	\N	150000.00000	2012-09-12	\N	1401	71
1091		2012-09-12 15:35:50.28489	\N	378.15000	2012-09-12	\N	1028	104
1093		2012-09-12 15:36:27.30896	\N	420.17000	2012-09-12	\N	1024	105
1093		2012-09-12 15:36:27.30896	\N	430.00000	2012-09-12	\N	1028	106
1100		2012-09-12 15:37:29.371667	\N	0.34000	2012-09-12	\N	1030	108
1103		2012-09-12 15:37:49.346964	\N	2016.81000	2012-09-12	\N	1030	109
1105		2012-09-12 15:38:09.336613	\N	4201.68000	2012-09-12	\N	1030	110
1107		2012-09-12 15:38:32.923024	\N	857.14000	2012-09-12	\N	1030	111
1115		2012-09-12 15:39:26.142799	\N	4453.78000	2012-09-12	\N	1062	113
1117		2012-09-12 15:39:47.543439	\N	6672.27000	2012-09-12	\N	1062	114
1119		2012-09-12 15:40:01.563961	\N	6672.27000	2012-09-12	\N	1062	115
1123		2012-09-12 15:40:39.068384	\N	6672.27000	2012-09-12	\N	1062	117
1135		2012-09-12 15:41:31.664517	\N	436974.79000	2012-09-12	\N	1074	119
1137		2012-09-12 15:41:52.665781	\N	5882.35000	2012-09-12	\N	1076	120
1142		2012-09-12 15:42:22.081404	\N	823529.41000	2012-09-12	\N	1139	121
1144		2012-09-12 15:42:39.474494	\N	2.44000	2012-09-12	\N	1082	122
1174		2012-09-12 15:43:53.978366	\N	840336.13000	2012-09-12	\N	1050	126
1180		2012-09-12 15:44:18.933991	\N	126050.42000	2012-09-12	\N	1078	127
1183	67226,89	2012-09-12 15:44:44.219142	\N	0.00000	2012-08-21	\N	1078	128
1742		2012-09-21 14:32:13.03265	\N	650000.00000	2012-09-21	\N	1397	142
1098		2012-09-25 20:53:02.354239	\N	6722689.08000	2012-09-12	\N	1022	145
1185		2012-09-25 20:54:46.818525	\N	168067.23000	2012-09-12	\N	1080	147
1133		2012-09-26 15:48:14.312329	\N	571428.57000	2012-09-12	\N	1074	151
1822		2012-10-08 16:04:40.898607	\N	0.00000	2012-10-08	\N	1821	153
1111		2012-10-09 14:51:21.834154	\N	4201680.67000	2012-10-09	\N	1032	156
1752		2012-11-15 14:25:11.163726	\N	15000.00000	2012-11-15	\N	1349	157
1888		2012-11-15 14:40:20.793225	\N	50.00000	2012-11-15	1	1078	158
1888		2012-11-15 14:40:20.793225	\N	51.00000	2012-11-15	2	1035	159
\.


--
-- Data for Name: notes; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.notes (id, subject, body, created_by, trans_id, trans_module, itime, mtime) FROM stdin;
\.


--
-- Data for Name: oe; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.oe (id, ordnumber, transdate, vendor_id, customer_id, amount, netamount, reqdate, taxincluded, shippingpoint, notes, employee_id, closed, quotation, quonumber, cusordnumber, intnotes, department_id, itime, mtime, shipvia, cp_id, language_id, payment_id, delivery_customer_id, delivery_vendor_id, taxzone_id, proforma, shipto_id, globalproject_id, delivered, salesman_id, marge_total, marge_percent, transaction_description, delivery_term_id, currency_id, order_probability, expected_billing_date) FROM stdin;
1584	201205	2012-04-11	1401	\N	1800000.00000	1800000.00000	2012-06-12	f			1213	t	f				\N	2012-09-12 14:51:37.70705	2015-02-01 20:53:44.552573		\N	\N	\N	\N	\N	1	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1744	201211	2012-05-18	1397	\N	650000.00000	650000.00000	2012-06-01	f			1213	t	f				\N	2012-09-21 14:34:23.851411	2015-02-01 20:53:44.552573		\N	\N	\N	\N	\N	3	f	\N	1020	t	\N	0.00000	0.00000		\N	2	0	\N
1510	201213	2012-07-02	1401	\N	70000.00000	70000.00000	2012-07-09	f			938	t	f				\N	2012-09-12 12:47:57.191845	2015-02-01 20:53:44.552573		\N	\N	\N	\N	\N	1	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1931	4	2014-11-08	\N	1754	409.50000	344.12000	2014-11-10	t			1871	f	f				\N	2014-11-08 13:22:54.710891	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	\N	t	1871	49.15966	100.00000		\N	1	0	\N
1399	201201	2011-12-19	1190	\N	30000.00000	28037.38000	2012-01-02	t			938	t	f				\N	2012-09-12 11:29:38.282667	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1474	201208	2012-05-07	1022	\N	16000000.00000	13445378.15000	2012-05-14	t			938	t	f				\N	2012-09-12 12:15:01.242133	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1535	201218	2012-09-03	1062	\N	1133740.00000	952722.69000	2012-09-10	t			1213	t	f				\N	2012-09-12 14:10:55.722844	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1555	201219	2012-09-03	1041	\N	5300000.00000	4453781.51000	2012-10-01	t			938	t	f				\N	2012-09-12 14:23:49.864891	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1559	201220	2012-09-03	1059	\N	2100000.00000	1764705.88000	2012-10-29	t			1213	t	f				\N	2012-09-12 14:28:53.72387	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1553	201221	2012-09-12	1052	\N	65000.00000	54621.85000	2012-09-17	t			1213	t	f				\N	2012-09-12 14:22:51.838575	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1492	201202	2012-01-04	1028	\N	5042040.00000	4237008.40000	2012-01-13	t			1213	t	f				\N	2012-09-12 12:24:02.918401	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1410	201203	2012-01-04	1024	\N	2250000.00000	1890756.30000	2012-01-13	t			938	t	f				\N	2012-09-12 11:42:17.714318	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1416	201204	2012-01-04	1076	\N	1400000.00000	1176470.59000	2012-01-13	t			1213	t	f				\N	2012-09-12 11:45:32.462157	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1432	201206	2012-04-23	1139	\N	980000.00000	823529.41000	2012-05-01	t			938	t	f				\N	2012-09-12 11:51:52.333051	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1438	201207	2012-04-23	1030	\N	2677600.00000	2250084.03000	2012-05-01	t			1213	t	f				\N	2012-09-12 11:55:03.786392	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1469	201209	2012-05-07	1074	\N	1880000.00000	1579831.93000	2012-05-14	t			1213	t	f				\N	2012-09-12 12:11:04.578595	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1457	201210	2012-05-07	1032	\N	20000000.00000	16806722.69000	2012-05-14	t			938	t	f				\N	2012-09-12 12:07:37.21772	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1499	201212	2012-06-01	1078	\N	230000.00000	193277.31000	2012-06-11	t			938	t	f				\N	2012-09-12 12:36:07.551556	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1517	201214	2012-08-01	1035	\N	350000.00000	294117.65000	2012-08-08	t			1213	t	f				\N	2012-09-12 14:02:22.377664	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1522	201215	2012-08-06	1082	\N	957000.00000	804201.68000	2012-08-13	t			1213	t	f				\N	2012-09-12 14:05:43.130271	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1520	201216	2012-08-06	1050	\N	1000000.00000	840336.13000	2012-08-13	t			938	t	f				\N	2012-09-12 14:04:27.997387	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1537	201217	2012-08-27	1082	\N	4650000.00000	3907563.03000	2012-09-10	t			938	t	f				\N	2012-09-12 14:11:13.342638	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1567	201222	2012-09-27	1080	\N	200000.00000	168067.23000	2012-10-08	t			1213	t	f				\N	2012-09-12 14:39:35.392365	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1564	201223	2012-09-27	1043	\N	1680000.00000	1411764.71000	2012-10-17	t			1213	t	f				\N	2012-09-12 14:36:48.56306	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	f	\N	0.00000	0.00000		\N	1	0	\N
1569	201224	2012-11-15	1085	\N	25296.00000	23641.12000	2012-11-30	t			938	t	f				\N	2012-09-12 14:41:05.435676	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	1020	t	\N	0.00000	0.00000		\N	1	0	\N
1876	1	2012-11-15	\N	1754	21420.00000	18000.00000	2012-11-16	f			1871	t	f				\N	2012-11-15 14:28:55.898208	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	\N	t	1871	18000.00000	100.00000		\N	1	0	\N
1891	2	2012-11-15	\N	1754	192.78000	162.00000	2012-11-16	f			1871	f	f				\N	2012-11-15 14:44:55.775298	2015-02-01 20:53:54.391358		\N	\N	\N	\N	\N	4	f	\N	\N	f	1871	62.00000	38.27160		\N	1	0	\N
1915	3	2014-11-08	\N	1754	2380000.00000	2000000.00000	2014-11-10	f		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	1871	f	f				\N	2014-11-08 12:32:52.671555	2015-12-14 07:39:57.045972		\N	\N	\N	\N	\N	4	f	\N	\N	f	938	1999579.83000	99.97899		\N	1	0	\N
1756	201126	2011-12-02	\N	1754	23800.00000	20000.00000	2012-01-02	f		<p>Für den Bau ihre neuen Flusskreutzfahrtsflotte vermieten wir Ihnen das Baudock A1 für einen monatlichen Betrag von 23830 €.</p>	938	f	f				\N	2012-09-21 15:13:38.233557	2015-12-14 07:39:57.045972		\N	\N	\N	\N	\N	4	f	\N	\N	f	938	20000.00000	100.00000		\N	1	0	\N
1943	1	2017-05-17	1397	\N	378.15000	378.15000	2017-05-18	f			1871	f	f				\N	2017-05-17 11:50:43.081097	2017-05-17 11:50:43.081097		\N	\N	\N	\N	\N	3	f	\N	\N	f	\N	0.00000	0.00000		\N	2	0	\N
\.


--
-- Data for Name: orderitems; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.orderitems (trans_id, parts_id, description, qty, sellprice, discount, project_id, reqdate, ship, serialnumber, id, itime, mtime, pricegroup_id, ordnumber, transdate, cusordnumber, unit, base_qty, subtotal, longdescription, marge_total, marge_percent, lastcost, price_factor_id, price_factor, marge_price_factor, "position", active_price_source, active_discount_source) FROM stdin;
1399	1192	Design "OIDABLU"	1	30000.00000	0	\N	\N	0		1	2012-09-12 11:29:38.282667	2015-02-01 20:53:51.320654	\N		2011-12-19		psch	1	f		28037.38000	100.00000	0.00000	\N	\N	\N	1		
1499	1183	Lautsprecheranlage	1	80000.00000	0	1020	\N	0		57	2012-09-25 21:03:21.533773	2015-02-01 20:53:51.320654	\N	201209	2012-06-01		Stck	1	f		67226.89000	100.00000	0.00000	\N	\N	\N	1		
1510	1404	Anker	1	70000.00000	0	1020	\N	0		60	2012-09-25 21:03:41.034932	2015-02-01 20:53:51.320654	\N	201211	2012-07-02		Stck	1	f		70000.00000	100.00000	0.00000	\N	\N	\N	1		
1553	1154	Malerarbeiten	50	1300.00000	0	1020	\N	0		72	2012-09-25 21:05:01.551838	2015-02-01 20:53:51.320654	\N	201217	2012-09-12		Tag	50	f		54621.85000	100.00000	0.00000	\N	\N	\N	1		
1931	1929	pool	1	0.00000	0	\N	\N	0		86	2014-11-08 13:22:54.710891	2015-02-01 20:53:51.320654	\N		\N		psch	1	f		0.00000	0.00000	0.00000	\N	\N	\N	1		
1567	1185	"schiffseigene Brauerei" + Einbau	1	200000.00000	0	\N	\N	0		73	2012-09-25 21:05:12.417623	2015-02-01 20:53:51.320654	\N	201221	2012-09-27		psch	1	f		168067.23000	100.00000	0.00000	\N	\N	\N	1		
1584	1581	Rettungsboot	12	150000.00000	0	\N	\N	0		47	2012-09-25 21:02:12.260568	2015-02-01 20:53:51.320654	\N	201203-01	2012-04-11		Stck	12	f		1800000.00000	100.00000	0.00000	\N	\N	\N	1		
1744	1742	Anti-Piracy SystemXT 4000	1	650000.00000	0	\N	\N	0		56	2012-09-25 21:03:14.070606	2015-02-01 20:53:51.320654	\N	201210-1	2012-05-18		Stck	1	f		650000.00000	100.00000	0.00000	\N	\N	\N	1		
1756	1752	Vermietung Baudock A1	1	20000.00000	0	\N	\N	0		78	2012-09-25 21:06:18.720727	2015-02-01 20:53:51.320654	\N	022012	2011-12-02		Monat	1	f		20000.00000	100.00000	0.00000	\N	\N	\N	1		
1876	1752	Vermietung Baudock A1	1	20000.00000	0.100000001	\N	\N	0		80	2012-11-15 14:30:11.652828	2015-02-01 20:53:51.320654	\N	1	15.11.2012		Monat	1	f		18000.00000	100.00000	0.00000	\N	\N	\N	1		
1915	1752	Vermietung Baudock A1	100	20000.00000	0	\N	2014-12-15	0		83	2014-11-08 12:32:52.671555	2015-02-01 20:53:51.320654	\N	022012	2011-12-02		Monat	100	f		2000000.00000	100.00000	0.00000	\N	\N	\N	1		
1891	1888	Musterartikel 1	2	90.00000	0.100000001	\N	\N	0		82	2012-11-15 14:46:21.487196	2015-02-01 20:53:51.748061	1874	2	15.11.2012		Stck	2	f		62.00000	38.27000	50.00000	\N	\N	\N	1	pricegroup/1874	
1410	1093	Schiffbaustahl 2HGr50 (Qualitätstechnik)	4500	500.00000	0	1020	\N	0		45	2012-09-25 21:01:52.212281	2015-02-01 20:53:52.619843	\N	201202	2012-01-04		t	4500	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	1890756.30000	100.00000	0.00000	\N	\N	\N	1		
1416	1137	Rohrleitungen	200	7000.00000	0	1020	\N	0		46	2012-09-25 21:02:01.089967	2015-02-01 20:53:52.619843	\N	201203	2012-01-04		km	200	f	<p>vorgefertigte Rohrleitungen</p>	1176470.59000	100.00000	0.00000	\N	\N	\N	1		
1432	1142	Elektronik-Pack OIDA/Igel	1	980000.00000	0	1020	\N	0		48	2012-09-25 21:02:33.577472	2015-02-01 20:53:52.619843	\N	201204	2012-04-23		Stck	1	f	<p>Eigen in Auftrag gegebenes Produktpaket aus Kabelschächten, -führungen, Stecker und -leisten</p>	823529.41000	100.00000	0.00000	\N	\N	\N	1		
1438	1107	Fernmelde-Schiffskabel FMKHC	280	1020.00000	0	\N	\N	0		49	2012-09-25 21:02:41.719718	2015-02-01 20:53:52.619843	\N	201205	2012-04-23		km	280	f	<p>Halogen geben, feuerbeständiges Marinekommunikationskabel mit screend Standard</p>	240000.00000	100.00000	0.00000	\N	\N	\N	1		
1438	1100	Kabel und Leitungen H03VV-F	550	400.00000	0	\N	\N	0		50	2012-09-25 21:02:41.719718	2015-02-01 20:53:52.619843	\N	201205	2012-04-23		km	550000	f	<p>H03VV-F 3x0,75 - Leichte PVC-Schlauchleitung<br />feindrähtig, Ring 50 Meter<br />Farbe: schwarz<br />Nach DIN VDE 0281<br /></p>	184873.95000	100.00000	0.00000	\N	\N	\N	2		
1438	1103	Kabel und Leitungen SiHF-J	530	2400.00000	0	\N	\N	0		51	2012-09-25 21:02:41.719718	2015-02-01 20:53:52.619843	\N	201205	2012-04-23		km	530	f	<p>feindrähtiger Kupferlitzenleiter verzinnt, Farbe: rot-braun, Flammwidrig nach VDE 0472 Teil 804 Prüfart C</p>	1068907.56000	100.00000	0.00000	\N	\N	\N	3		
1438	1105	Starkstrom-Schiffskabel MPRXCX 	180	5000.00000	0	\N	\N	0		52	2012-09-25 21:02:41.719718	2015-02-01 20:53:52.619843	\N	201205	2012-04-23		km	180	f	<p>Cu-Litze blank, Verlitzung nach Klasse 2<br />Isolation aus vernetztem XLPE<br />Außenmantel Polyolefin, Farbe Schwarz</p>	756302.52000	100.00000	0.00000	\N	\N	\N	4		
1457	1111	Dieselmotor 9M43D	4	5000000.00000	0	1020	\N	0		55	2012-09-25 21:03:02.398126	2015-02-01 20:53:52.619843	\N	201206	2012-05-07		Stck	4	f	<p>9.000 kW (12237 PS)</p>	16806722.69000	100.00000	0.00000	\N	\N	\N	1		
1469	1133	SRP Propeller	2	680000.00000	0	1020	\N	0		53	2012-09-25 21:02:53.935249	2015-02-01 20:53:52.619843	\N	201207	2012-05-07		Stck	2	f	<p>5-Blatt-Festpropeller, Balance-Ruder</p>	1142857.14000	100.00000	0.00000	\N	\N	\N	1		
1469	1135	SST Steuer und Regelsystem	1	520000.00000	0	1020	\N	0		54	2012-09-25 21:02:53.935249	2015-02-01 20:53:52.619843	\N	201207	2012-05-07		Stck	1	f	<p>computerunterstütztes, ferngesteuertes Joystick-System</p>	436974.79000	100.00000	0.00000	\N	\N	\N	2		
1474	1098	Elektrischer Propellermotor S-12/5	2	8000000.00000	0	\N	\N	0		14	2012-09-12 12:15:01.242133	2015-02-01 20:53:52.619843	\N		2012-05-07		Stck	2	f	<p>12,5 MW; Wellenanlage<br />Maschinenleistung: 12.500 kW (16996 PS)</p>	13445378.15000	100.00000	0.00000	\N	\N	\N	1		
1492	1093	Schiffbaustahl 2HGr50 (Qualitätstechnik)	12000	420.17000	0	1020	\N	0		44	2012-09-25 21:01:41.487014	2015-02-01 20:53:52.619843	\N	201202-02	2012-01-04		t	12000	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	4237008.40000	100.00000	0.00000	\N	\N	\N	1		
1499	1180	SecuritySystem	1	150000.00000	0	1020	\N	0		58	2012-09-25 21:03:21.533773	2015-02-01 20:53:52.619843	\N	201209	2012-06-01		Stck	1	f	<p>Alarmanlagen, Messsensoren, Videoüberwachungsanlage</p>	126050.42000	100.00000	0.00000	\N	\N	\N	2		
1517	1156	B&C Glasprojekt "OIDAblu"	1	350000.00000	0	1020	\N	0		61	2012-09-25 21:03:48.06259	2015-02-01 20:53:52.619843	\N	201212	2012-08-01		psch	1	f	<p>Außen und Innenverglasung komplett<br />insgesamt 4600 m² Glas (Dünn-, Float-, Panzer-, Weiß-, Spiegelglas)<br />Plus Mitarbeiterkosten</p>	294117.65000	100.00000	0.00000	\N	\N	\N	1		
1520	1174	Paket Schiffsinnenbau "Kule"	1	1000000.00000	0	\N	\N	0		63	2012-09-25 21:04:02.440945	2015-02-01 20:53:52.619843	\N	201213	2012-08-06		psch	1	f	<p>Feuerschutztüren, Schichtstoffplatten HPL, Furniere MIneralwerkstoff, Wand- und Deckenpaneel</p>	840336.13000	100.00000	0.00000	\N	\N	\N	1		
1522	1144	Ultimate Mineralwolle	330000	2.90000	0	1020	\N	0		62	2012-09-25 21:03:54.888483	2015-02-01 20:53:52.619843	\N	201214	2012-08-06		m²	330000	f	<p>Hochleistungsdämmstoff für Wärme- und Schalldämmung</p>	804201.68000	100.00000	0.00000	\N	\N	\N	1		
1535	1117	Siloblau Fassade AE 1730	29	7940.00000	0	1020	\N	0		65	2012-09-25 21:04:18.128304	2015-02-01 20:53:52.619843	\N	201215	2012-09-03		t	29	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	193495.80000	100.00000	0.00000	\N	\N	\N	1		
1535	1123	Silogelb Fassade AF 2550	9	7940.00000	0	1020	\N	0		66	2012-09-25 21:04:18.128304	2015-02-01 20:53:52.619843	\N	201215	2012-09-03		t	9	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	60050.42000	100.00000	0.00000	\N	\N	\N	2		
1535	1119	Silorot Fassade AF 2550	4	7940.00000	0	1020	\N	0		67	2012-09-25 21:04:18.128304	2015-02-01 20:53:52.619843	\N	201215	2012-09-03		t	4	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	26689.08000	100.00000	0.00000	\N	\N	\N	3		
1535	1121	Siloschwarz fassade A0 000	4	7940.00000	0	1020	\N	0		68	2012-09-25 21:04:18.128304	2015-02-01 20:53:52.619843	\N	201215	2012-09-03		t	4	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	26689.08000	100.00000	0.00000	\N	\N	\N	4		
1535	1115	Siloweiß Fassade AF 5040	145	5300.00000	0	1020	\N	0		69	2012-09-25 21:04:18.128304	2015-02-01 20:53:52.619843	\N	201215	2012-09-03		t	145	f	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	645798.32000	100.00000	0.00000	\N	\N	\N	5		
1537	1158	Sanitäre Anlagen + Wellnessbereiche Rundum-Sorglos-Paket	1	4650000.00000	0	\N	\N	0		64	2012-09-25 21:04:10.771975	2015-02-01 20:53:52.619843	\N	201216	2012-08-27		psch	1	f	<p>1600 Toiletten, 1500 Duschen, 1700 Waschbecken, sanitäre Einrichtung für Luxussuiten, Saunabereiche, Wellnessbereiche</p>	3907563.03000	100.00000	0.00000	\N	\N	\N	1		
1569	1149	Zypresse	65	105.00000	0	\N	\N	0		76	2012-09-25 21:05:30.225665	2015-02-01 20:53:52.619843	\N	201222	2012-11-15		Stck	65	f	<p>stabilisiert</p>	6378.50000	100.00000	0.00000	\N	\N	\N	2		
1555	1161	Innenausbau "Veranstaltungs- und Verpflegungsräumeräume"	1	5300000.00000	0	\N	\N	0		70	2012-09-25 21:04:29.064092	2015-02-01 20:53:52.619843	\N	201218	2012-09-03		psch	1	f	<p>Schiffsinnenbau der Veranstaltungsräume: 4D Kino, Casino, 4 Discotheken, 15 Restaurants, Crewkantine, Theatrium, Messehalle, 11 Bars</p>	4453781.51000	100.00000	0.00000	\N	\N	\N	1		
1559	1167	Innenausbau "Passagiere + Gänge"	1	2100000.00000	0	1020	\N	0		71	2012-09-25 21:04:42.413443	2015-02-01 20:53:52.619843	\N	201219	2012-09-03		psch	1	f	<p>Schiffsinnenbau: alle 1096 Passagierkabinen, Gänge und Treppenhäuser</p>	1764705.88000	100.00000	0.00000	\N	\N	\N	1		
1564	1164	Innenausbau "Crew und Luxus"	1	1680000.00000	0	\N	\N	0		74	2012-09-25 21:05:23.511389	2015-02-01 20:53:52.619843	\N	201220	2012-09-27		psch	1	f	<p>Schiffsinnenbau &quot;Crew und Luxus&quot;: Ausbau des Crewbereichs mit 600 Crew Kabinen, 3 Kapitänskabinen, Eine Discothek und eine Bar extra für die Crew + Luxussuiten (23)</p>	1411764.71000	100.00000	0.00000	\N	\N	\N	1		
1569	1147	Palme	70	250.50000	0	\N	\N	0		75	2012-09-25 21:05:30.225665	2015-02-01 20:53:52.619843	\N	201222	2012-11-15		Stck	70	f	<p>blaue Hesperidenpalme, stabilisiert</p>	16387.85000	100.00000	0.00000	\N	\N	\N	1		
1569	1152	Hecke	260	3.60000	0	\N	\N	0		77	2012-09-25 21:05:30.225665	2015-02-01 20:53:52.619843	\N	201222	2012-11-15		m²	260	f	<p>stabilisiert</p>	874.77000	100.00000	0.00000	\N	\N	\N	3		
1915	1093	Schiffbaustahl 2HGr50 (Qualitätstechnik)	27	0.00000	0	\N	\N	0		84	2014-11-08 12:32:52.671555	2015-02-01 20:53:52.619843	\N		\N		t	27	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	-420.17000	0.00000	420.17000	\N	\N	\N	2		
1931	1927	Montteur A	7	58.50000	0	\N	\N	0		87	2014-11-08 13:22:54.710891	2015-02-01 20:53:52.619843	\N		\N		Std	7	f	<p>Monteur A arbeitet schnell und zügig, mit ordentlich Kaffeepausen.</p>	49.16000	100.00000	0.00000	\N	\N	\N	2		
1943	1091	Schiffbaustahl Marine 33	1	378.15000	0	\N	\N	0		91	2017-05-17 11:50:43.081097	2017-05-17 11:50:43.081097	\N	\N	\N	\N	t	1	f	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	378.15000	100.00000	0.00000	\N	\N	\N	1	master_data/lastcost	
\.


--
-- Data for Name: part_classifications; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.part_classifications (id, description, abbreviation, used_for_purchase, used_for_sale, report_separate) FROM stdin;
0	-------	None (typeabbreviation)	t	t	f
1	Purchase	Purchase (typeabbreviation)	t	f	f
2	Sales	Sales (typeabbreviation)	f	t	f
3	Merchandise	Merchandise (typeabbreviation)	t	t	f
4	Production	Production (typeabbreviation)	f	t	f
\.


--
-- Data for Name: part_customer_prices; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.part_customer_prices (id, parts_id, customer_id, customer_partnumber, price, sortorder, lastupdate) FROM stdin;
\.


--
-- Data for Name: parts; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.parts (id, partnumber, description, listprice, sellprice, lastcost, priceupdate, weight, notes, makemodel, rop, shop, obsolete, bom, image, drawing, microfiche, partsgroup_id, ve, gv, itime, mtime, unit, formel, not_discountable, buchungsgruppen_id, payment_id, ean, price_factor_id, onhand, stockable, has_sernumber, warehouse_id, bin_id, classification_id, part_type) FROM stdin;
1192	108	Design "OIDABLU"	0.00000	0.00000	28037.38000	2012-09-12	0		t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-21 11:13:33.094868	2017-05-17 12:52:41.287138	psch	\N	f	937	\N		\N	0.00000	f	f	\N	\N	0	service
1154	101	Malerarbeiten	0.00000	0.00000	1008.40000	2012-09-12	0		t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-20 15:50:07.318925	2017-05-17 12:52:41.287138	Tag	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1185	107	"Schiffseigene Brauerei" + Einbau	0.00000	0.00000	168067.23000	2012-09-12	0		t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-21 11:04:04.539082	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1752	109	Vermietung Baudock A1	0.00000	20000.00000	0.00000	2012-09-21	0		t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-09-21 15:10:16.867724	2017-05-17 12:52:41.287138	Monat	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1161	104	Innenausbau "Veranstaltungs- und Verpflegungsräumeräume"	0.00000	0.00000	4453781.51000	2012-09-12	0	<p>Schiffsinnenbau der Veranstaltungsräume: 4D Kino, Casino, 4 Discotheken, 15 Restaurants, Crewkantine, Theatrium, Messehalle, 11 Bars</p>	t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-21 10:20:40.287588	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1164	105	Innenausbau "Crew und Luxus"	0.00000	0.00000	1411764.71000	2012-09-12	0	<p>Schiffsinnenbau &quot;Crew und Luxus&quot;: Ausbau des Crewbereichs mit 600 Crew Kabinen, 3 Kapitänskabinen, Eine Discothek und eine Bar extra für die Crew + Luxussuiten (23)</p>	t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-21 10:26:47.581527	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1167	106	Innenausbau "Passagiere + Gänge"	0.00000	0.00000	1764705.88000	2012-09-12	0	<p>Schiffsinnenbau: alle 1096 Passagierkabinen, Gänge und Treppenhäuser</p>	t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-21 10:32:10.246608	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1158	103	Sanitäre Anlagen + Wellnessbereiche Rundum-Sorglos-Paket	0.00000	0.00000	3907563.03000	2012-09-12	0	<p>1600 Toiletten, 1500 Duschen, 1700 Waschbecken, sanitäre Einrichtung für Luxussuiten, Saunabereiche, Wellnessbereiche</p>	t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-20 16:03:28.613749	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1156	102	B&C Glasprojekt "OIDAblu"	0.00000	0.00000	294117.65000	2012-09-12	0	<p>Außen und Innenverglasung komplett<br />insgesamt 4600 m² Glas (Dünn-, Float-, Panzer-, Weiß-, Spiegelglas)<br />Plus Mitarbeiterkosten</p>	t	0	f	f	f	\N	\N	\N	\N	\N	0.00000	2012-08-20 15:57:05.848953	2017-05-17 12:52:41.287138	psch	\N	f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1927	Monteur A	Montteur A	0.00000	65.00000	0.00000	2014-11-08	0	<p>Monteur A arbeitet schnell und zügig, mit ordentlich Kaffeepausen.</p>	f	0	f	f	f				\N	\N	0.00000	2014-11-08 13:19:43.793909	2017-05-17 12:52:41.287138	Std		f	936	\N		\N	0.00000	f	f	\N	\N	0	service
1888	1	Musterartikel 1	100.00000	100.00000	50.00000	2012-11-15	0		t	0	f	f	f				1887	\N	0.00000	2012-11-15 14:40:20.793225	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	97.00000	f	f	\N	\N	0	part
1581	027	Rettungsboot	0.00000	0.00000	150000.00000	2012-09-12	0		t	0	f	f	f				\N	\N	0.00000	2012-09-12 14:48:16.971483	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1758	000	OIDABLU	0.00000	350000000.00000	0.00000	2012-09-21	0		f	0	f	f	f				\N	\N	0.00000	2012-09-21 15:16:58.235275	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1822	029	Kronleuchter Deluxe 4000	100000.00000	0.00000	120000.00000	2012-10-08	0		t	0	f	f	f				\N	\N	0.00000	2012-10-08 15:28:06.467019	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1183	024	Lautsprecheranlage	0.00000	0.00000	67226.89000	2012-09-12	0		t	0	f	f	f				\N	\N	0.00000	2012-08-21 11:01:00.742146	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1404	026	Anker	0.00000	0.00000	70000.00000	2012-09-12	0		t	0	f	f	f				\N	\N	0.00000	2012-09-12 11:32:32.619868	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1325	025	Kopierpapier weiß A4 Paket	0.00000	0.00000	3.27000	2012-09-12	0	<p>500 Blatt</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-30 14:57:04.311798	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1742	028	Anti-Piracy SystemXT 4000	0.00000	0.00000	522730.00000	2012-09-21	0		t	0	f	f	f				\N	\N	0.00000	2012-09-21 14:32:13.03265	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1929	Standard Pool-Wartung	pool	0.00000	0.00000	0.00000	2014-11-08	0		f	0	f	f	f				\N	\N	0.00000	2014-11-08 13:20:34.821108	2017-05-17 12:52:41.287138	psch		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1103	005	Kabel und Leitungen SiHF-J	0.00000	0.00000	2016.81000	2012-09-12	0	<p>feindrähtiger Kupferlitzenleiter verzinnt, Farbe: rot-braun, Flammwidrig nach VDE 0472 Teil 804 Prüfart C</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:47:19.108004	2017-05-17 12:52:41.287138	km		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1100	004	Kabel und Leitungen H03VV-F	0.00000	0.00000	0.34000	2012-09-12	0	<p>H03VV-F 3x0,75 - Leichte PVC-Schlauchleitung<br />feindrähtig, Ring 50 Meter<br />Farbe: schwarz<br />Nach DIN VDE 0281<br /></p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:43:25.816279	2017-05-17 12:52:41.287138	m		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1105	006	Starkstrom-Schiffskabel MPRXCX 	0.00000	0.00000	4201.68000	2012-09-12	0	<p>Cu-Litze blank, Verlitzung nach Klasse 2<br />Isolation aus vernetztem XLPE<br />Außenmantel Polyolefin, Farbe Schwarz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:51:16.937606	2017-05-17 12:52:41.287138	km		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1144	018	Ultimate Mineralwolle	0.00000	0.00000	2.44000	2012-09-12	0	<p>Hochleistungsdämmstoff für Wärme- und Schalldämmung</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:28:54.604842	2017-05-17 12:52:41.287138	m²		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1091	001	Schiffbaustahl Marine 33	0.00000	0.00000	378.15000	2012-09-12	0	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 12:56:53.176655	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1093	002	Schiffbaustahl 2HGr50 (Qualitätstechnik)	0.00000	0.00000	420.17000	2012-09-12	0	<p>Höherfester Schiffbaustahl, thermomechanisch gewalzt, besonders feinkörnig geschmolzen<br />Abnahmeprüfzeugnis 3.1 nach EN 10204</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:02:15.003315	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1133	014	SRP Propeller	0.00000	0.00000	571428.57000	2012-09-12	0	<p>5-Blatt-Festpropeller, Balance-Ruder</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:48:59.763934	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1137	016	Rohrleitungen	0.00000	0.00000	5882.35000	2012-09-12	0	<p>vorgefertigte Rohrleitungen</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:11:15.017645	2017-05-17 12:52:41.287138	km		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1111	008	Dieselmotor 9M43D	0.00000	0.00000	4201680.67000	2012-09-12	0	<p>9.000 kW (12237 PS)</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:13:43.168342	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1142	017	Elektronik-Pack OIDA/Igel	0.00000	0.00000	823529.41000	2012-09-12	0	<p>Eigen in Auftrag gegebenes Produktpaket aus Kabelschächten, -führungen, Stecker und -leisten</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:20:57.505582	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1180	023	SecuritySystem	0.00000	0.00000	126050.42000	2012-09-12	0	<p>Alarmanlagen, Messsensoren, Videoüberwachungsanlage</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-21 11:00:21.459352	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1174	022	Paket Schiffsinnenbau "Kule"	0.00000	0.00000	840336.13000	2012-09-12	0	<p>Feuerschutztüren, Schichtstoffplatten HPL, Furniere MIneralwerkstoff, Wand- und Deckenpaneel</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-21 10:54:30.032013	2017-05-17 12:52:41.287138	psch		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1123	013	Silogelb Fassade AF 2550	0.00000	0.00000	6672.27000	2012-09-12	0	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:22:31.479228	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1147	019	Palme	0.00000	0.00000	234.11000	2012-09-12	0	<p>blaue Hesperidenpalme, stabilisiert</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:35:12.188018	2017-05-17 12:52:41.287138	Stck		f	937	\N		\N	0.00000	f	f	\N	\N	0	part
1149	020	Zypresse	0.00000	0.00000	98.13000	2012-09-12	0	<p>stabilisiert</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:35:55.945238	2017-05-17 12:52:41.287138	Stck		f	937	\N		\N	0.00000	f	f	\N	\N	0	part
1152	021	Hecke	0.00000	0.00000	3.36000	2012-09-12	0	<p>stabilisiert</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 15:39:53.929915	2017-05-17 12:52:41.287138	m²		f	937	\N		\N	0.00000	f	f	\N	\N	0	part
1135	015	SST Steuer und Regelsystem	520000.00000	0.00000	436974.79000	2012-09-12	0	<p>computerunterstütztes, ferngesteuertes Joystick-System</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:50:35.379669	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1098	003	Elektrischer Propellermotor S-12/5	0.00000	0.00000	6722689.08000	2012-09-12	0	<p>12,5 MW; Wellenanlage<br />Maschinenleistung: 12.500 kW (16996 PS)</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:10:52.296787	2017-05-17 12:52:41.287138	Stck		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1107	007	Fernmelde-Schiffskabel FMKHC	0.00000	0.00000	857.14000	2012-09-12	0	<p>Halogen geben, feuerbeständiges Marinekommunikationskabel mit screend Standard</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 13:55:00.268379	2017-05-17 12:52:41.287138	km		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1115	009	Siloweiß Fassade AF 5040	0.00000	0.00000	4453.78000	2012-09-12	0	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:19:22.739692	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1119	011	Silorot Fassade AF 2550	0.00000	0.00000	6672.27000	2012-09-12	0	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:20:50.332679	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1117	010	Siloblau Fassade AE 1730	0.00000	0.00000	6672.27000	2012-09-12	0	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:19:52.233552	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1121	012	Siloschwarz Fassade A0 000	0.00000	0.00000	6672.27000	2012-09-12	0	<p>Hochdiffusionsfähige, wasserabweisend eingestellte Silikonharzfassadenfarbe,<br />Algen- und Pilzbefallschutz</p>	t	0	f	f	f				\N	\N	0.00000	2012-08-20 14:21:25.808958	2017-05-17 12:52:41.287138	t		f	936	\N		\N	0.00000	f	f	\N	\N	0	part
1946	DNG	Dinge	0.00000	0.00000	50.00000	2017-11-15	0		f	0	f	f	f				\N	\N	0.00000	2017-11-15 10:25:07.647656	2017-11-15 10:26:00.183822	Stck		f	936	\N		942	0.00000	f	f	\N	\N	0	part
\.


--
-- Data for Name: parts_price_history; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.parts_price_history (id, part_id, valid_from, lastcost, listprice, sellprice) FROM stdin;
1	1888	2012-11-15 14:48:22.490264	50.00000	100.00000	100.00000
2	1192	2014-11-08 12:28:33.941525	28037.38000	0.00000	0.00000
3	1154	2014-11-08 12:28:33.941525	1008.40000	0.00000	0.00000
4	1581	2014-11-08 12:28:33.941525	150000.00000	0.00000	0.00000
5	1185	2014-11-08 12:28:33.941525	168067.23000	0.00000	0.00000
6	1758	2014-11-08 12:28:33.941525	0.00000	0.00000	350000000.00000
7	1822	2014-11-08 12:28:33.941525	120000.00000	100000.00000	0.00000
8	1183	2014-11-08 12:28:33.941525	67226.89000	0.00000	0.00000
9	1404	2014-11-08 12:28:33.941525	70000.00000	0.00000	0.00000
10	1752	2014-11-08 12:28:33.941525	0.00000	0.00000	20000.00000
11	1325	2015-02-01 20:53:52.619843	3.27000	0.00000	0.00000
12	1742	2014-11-08 12:28:33.941525	522730.00000	0.00000	0.00000
13	1929	2014-11-08 13:20:34.821108	0.00000	0.00000	0.00000
14	1161	2015-02-01 20:53:52.619843	4453781.51000	0.00000	0.00000
15	1164	2015-02-01 20:53:52.619843	1411764.71000	0.00000	0.00000
16	1167	2015-02-01 20:53:52.619843	1764705.88000	0.00000	0.00000
17	1158	2015-02-01 20:53:52.619843	3907563.03000	0.00000	0.00000
18	1156	2015-02-01 20:53:52.619843	294117.65000	0.00000	0.00000
19	1103	2015-02-01 20:53:52.619843	2016.81000	0.00000	0.00000
20	1100	2015-02-01 20:53:52.619843	0.34000	0.00000	0.00000
21	1105	2015-02-01 20:53:52.619843	4201.68000	0.00000	0.00000
22	1144	2015-02-01 20:53:52.619843	2.44000	0.00000	0.00000
23	1091	2015-02-01 20:53:52.619843	378.15000	0.00000	0.00000
24	1093	2015-02-01 20:53:52.619843	420.17000	0.00000	0.00000
25	1133	2015-02-01 20:53:52.619843	571428.57000	0.00000	0.00000
26	1137	2015-02-01 20:53:52.619843	5882.35000	0.00000	0.00000
27	1142	2015-02-01 20:53:52.619843	823529.41000	0.00000	0.00000
28	1180	2015-02-01 20:53:52.619843	126050.42000	0.00000	0.00000
29	1174	2015-02-01 20:53:52.619843	840336.13000	0.00000	0.00000
30	1123	2015-02-01 20:53:52.619843	6672.27000	0.00000	0.00000
31	1147	2015-02-01 20:53:52.619843	234.11000	0.00000	0.00000
32	1149	2015-02-01 20:53:52.619843	98.13000	0.00000	0.00000
33	1152	2015-02-01 20:53:52.619843	3.36000	0.00000	0.00000
34	1135	2015-02-01 20:53:52.619843	436974.79000	520000.00000	0.00000
35	1098	2015-02-01 20:53:52.619843	6722689.08000	0.00000	0.00000
36	1107	2015-02-01 20:53:52.619843	857.14000	0.00000	0.00000
37	1111	2015-02-01 20:53:52.619843	4201680.67000	0.00000	0.00000
38	1115	2015-02-01 20:53:52.619843	4453.78000	0.00000	0.00000
39	1927	2015-02-01 20:53:52.619843	0.00000	0.00000	65.00000
40	1119	2015-02-01 20:53:52.619843	6672.27000	0.00000	0.00000
41	1117	2015-02-01 20:53:52.619843	6672.27000	0.00000	0.00000
42	1121	2015-02-01 20:53:52.619843	6672.27000	0.00000	0.00000
43	1946	2017-11-15 10:25:07.647656	50.00000	0.00000	0.00000
\.


--
-- Data for Name: partsgroup; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.partsgroup (id, partsgroup, itime, mtime, obsolete, sortkey) FROM stdin;
1887	Musterwarengruppe 1	2012-11-15 14:37:48.493322	2017-05-17 12:52:41.316269	f	1
\.


--
-- Data for Name: payment_terms; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.payment_terms (id, description, description_long, terms_netto, terms_skonto, percent_skonto, itime, mtime, sortkey, auto_calculation, description_long_invoice, obsolete) FROM stdin;
1924	7 Tage 2 Prozent - 14 Tage netto	7 Tage 2 Prozent - 14 Tage netto	14	7	0.0199999996	2014-11-08 12:53:53.360529	\N	1	t	7 Tage 2 Prozent - 14 Tage netto	f
\.


--
-- Data for Name: periodic_invoices; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.periodic_invoices (id, config_id, ar_id, period_start_date, itime) FROM stdin;
1764	1761	209	2012-01-02	2012-09-21 15:36:32.645385
1765	1761	210	2012-02-02	2012-09-21 15:36:33.068754
1766	1761	211	2012-03-02	2012-09-21 15:36:33.265917
1767	1761	212	2012-04-02	2012-09-21 15:36:33.365752
1768	1761	213	2012-05-02	2012-09-21 15:36:33.491077
1769	1761	214	2012-06-02	2012-09-21 15:36:33.596295
1770	1761	215	2012-07-02	2012-09-21 15:36:33.715663
1771	1761	216	2012-08-02	2012-09-21 15:36:33.819959
1772	1761	217	2012-09-02	2012-09-21 15:36:34.018694
1777	1761	222	2012-09-02	2012-09-21 16:20:17.548256
1840	1761	228	2012-10-02	2012-10-09 08:49:39.436806
1841	1761	229	2012-11-02	2012-12-12 12:48:18.476016
1842	1761	230	2012-12-02	2012-12-12 12:48:18.77791
\.


--
-- Data for Name: periodic_invoices_configs; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.periodic_invoices_configs (id, oe_id, periodicity, print, printer_id, copies, active, terminated, start_date, end_date, ar_chart_id, extend_automatically_by, first_billing_date, order_value_periodicity, direct_debit, send_email, email_recipient_contact_id, email_recipient_address, email_sender, email_subject, email_body) FROM stdin;
1761	1756	m	f	\N	1	t	f	2012-01-02	2013-01-03	17	1	\N	p	f	f	\N	\N	\N	\N	\N
1916	1915	m	f	\N	1	t	f	2012-01-02	2013-01-03	17	1	\N	p	f	f	\N	\N	\N	\N	\N
\.


--
-- Data for Name: price_factors; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.price_factors (id, description, factor, sortkey) FROM stdin;
942	pro 10	10.00000	1
943	pro 100	100.00000	2
944	pro 1.000	1000.00000	3
\.


--
-- Data for Name: price_rule_items; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.price_rule_items (id, price_rules_id, type, op, custom_variable_configs_id, value_text, value_int, value_date, value_num, itime, mtime) FROM stdin;
\.


--
-- Data for Name: price_rules; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.price_rules (id, name, type, priority, price, reduction, obsolete, itime, mtime, discount) FROM stdin;
\.


--
-- Data for Name: pricegroup; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.pricegroup (id, pricegroup, obsolete, sortkey) FROM stdin;
1874	Grosskunde	f	1
1886	Musterfirma	f	2
\.


--
-- Data for Name: prices; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.prices (parts_id, pricegroup_id, price, id) FROM stdin;
1752	1874	17000.00000	1
1888	1874	90.00000	2
1888	1886	80.00000	3
\.


--
-- Data for Name: printers; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.printers (id, printer_description, printer_command, template_code) FROM stdin;
\.


--
-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project (id, projectnumber, description, itime, mtime, active, customer_id, valid, project_type_id, start_date, end_date, billable_customer_id, budget_cost, order_value, budget_minutes, timeframe, project_status_id) FROM stdin;
1020	01-2012	OIDAGreen - Kreutzfahrtschiff	2012-08-17 12:59:38.920804	\N	t	\N	t	1	\N	\N	\N	0.00000	0.00000	0	f	3
\.


--
-- Data for Name: project_participants; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_participants (id, project_id, employee_id, project_role_id, minutes, cost_per_hour, itime, mtime) FROM stdin;
\.


--
-- Data for Name: project_phase_participants; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_phase_participants (id, project_phase_id, employee_id, project_role_id, minutes, cost_per_hour, itime, mtime) FROM stdin;
\.


--
-- Data for Name: project_phases; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_phases (id, project_id, start_date, end_date, name, description, budget_minutes, budget_cost, general_minutes, general_cost_per_hour, itime, mtime) FROM stdin;
\.


--
-- Data for Name: project_roles; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_roles (id, name, description, "position", itime, mtime) FROM stdin;
\.


--
-- Data for Name: project_statuses; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_statuses (id, name, description, "position", itime, mtime) FROM stdin;
1	presales	Akquise	1	2015-02-01 20:53:51.698514	\N
2	planning	In Planung	2	2015-02-01 20:53:51.698514	\N
3	running	In Bearbeitung	3	2015-02-01 20:53:51.698514	\N
4	done	Fertiggestellt	4	2015-02-01 20:53:51.698514	\N
\.


--
-- Data for Name: project_types; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.project_types (id, "position", description, internal) FROM stdin;
1	1	Standard	f
2	2	Festpreis	f
3	3	Support	f
\.


--
-- Data for Name: reconciliation_links; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.reconciliation_links (id, bank_transaction_id, acc_trans_id, rec_group) FROM stdin;
\.


--
-- Data for Name: record_links; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.record_links (from_table, from_id, to_table, to_id, itime, id) FROM stdin;
oe	1399	ap	158	2012-09-12 11:31:38.368947	1
oe	1410	delivery_orders	1412	2012-09-12 11:44:32.579899	2
delivery_orders	1412	ap	159	2012-09-12 11:46:35.764079	3
oe	1416	delivery_orders	1419	2012-09-12 11:48:47.582506	4
delivery_orders	1419	ap	160	2012-09-12 11:51:00.529905	5
oe	1432	delivery_orders	1434	2012-09-12 11:52:49.302474	6
delivery_orders	1434	ap	161	2012-09-12 11:55:21.123487	7
oe	1438	delivery_orders	1441	2012-09-12 11:57:39.670908	8
delivery_orders	1441	ap	162	2012-09-12 12:00:50.338662	9
oe	1457	delivery_orders	1459	2012-09-12 12:09:40.663072	10
delivery_orders	1459	ap	163	2012-09-12 12:11:50.790617	11
oe	1469	delivery_orders	1476	2012-09-12 12:15:45.170959	12
oe	1474	delivery_orders	1484	2012-09-12 12:16:02.876219	13
delivery_orders	1476	ap	164	2012-09-12 12:16:58.361196	14
delivery_orders	1484	ap	165	2012-09-12 12:17:13.904978	15
oe	1492	delivery_orders	1494	2012-09-12 12:33:07.170286	16
delivery_orders	1494	ap	166	2012-09-12 12:34:31.518335	17
oe	1499	delivery_orders	1503	2012-09-12 12:39:22.659153	18
delivery_orders	1503	ap	167	2012-09-12 12:40:21.584179	19
oe	1510	delivery_orders	1512	2012-09-12 12:49:24.103479	20
delivery_orders	1512	ap	168	2012-09-12 12:51:04.811484	21
oe	1517	ap	169	2012-09-12 14:03:23.525778	22
oe	1520	delivery_orders	1525	2012-09-12 14:06:01.064826	23
oe	1522	delivery_orders	1529	2012-09-12 14:07:21.77179	24
delivery_orders	1525	ap	170	2012-09-12 14:07:26.811402	25
delivery_orders	1529	ap	171	2012-09-12 14:08:20.092458	26
oe	1537	ap	172	2012-09-12 14:14:06.926166	27
oe	1535	delivery_orders	1540	2012-09-12 14:14:57.960114	28
delivery_orders	1540	ap	173	2012-09-12 14:16:01.336668	29
oe	1555	ap	175	2012-09-12 14:26:50.138796	31
oe	1559	ap	176	2012-09-12 14:30:44.163604	32
oe	1553	ap	177	2012-09-12 14:34:33.16189	33
oe	1564	ap	178	2012-09-12 14:38:20.675653	34
oe	1567	ap	179	2012-09-12 14:41:19.85977	35
oe	1569	delivery_orders	1572	2012-09-12 14:43:11.233866	36
delivery_orders	1572	ap	180	2012-09-12 14:44:44.722246	37
oe	1584	delivery_orders	1586	2012-09-12 14:54:45.296188	38
delivery_orders	1586	ap	181	2012-09-12 14:56:01.117455	39
oe	1744	delivery_orders	1746	2012-09-21 14:35:56.192082	40
delivery_orders	1746	ap	206	2012-09-21 14:43:12.462592	41
oe	1756	ar	209	2012-09-21 15:36:32.645385	43
oe	1756	ar	210	2012-09-21 15:36:33.068754	44
oe	1756	ar	211	2012-09-21 15:36:33.265917	45
oe	1756	ar	212	2012-09-21 15:36:33.365752	46
oe	1756	ar	213	2012-09-21 15:36:33.491077	47
oe	1756	ar	214	2012-09-21 15:36:33.596295	48
oe	1756	ar	215	2012-09-21 15:36:33.715663	49
oe	1756	ar	216	2012-09-21 15:36:33.819959	50
oe	1756	ar	217	2012-09-21 15:36:34.018694	51
oe	1756	ar	222	2012-09-21 16:20:17.548256	52
oe	1756	ar	228	2012-10-09 08:49:39.436806	53
oe	1756	ar	229	2012-12-12 12:48:18.476016	54
oe	1756	ar	230	2012-12-12 12:48:18.77791	55
oe	1876	delivery_orders	1881	2012-11-15 14:31:04.146554	56
delivery_orders	1881	ar	249	2012-11-15 14:31:30.163919	57
\.


--
-- Data for Name: record_template_items; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.record_template_items (id, record_template_id, chart_id, tax_id, project_id, amount1, amount2, source, memo) FROM stdin;
1	1	270	389	\N	40750.00000	0.00000		
2	1	45	0	\N	0.00000	40750.00000		
3	1	1	389	\N	0.00000	0.00000		
4	2	246	389	\N	768.00000	0.00000		
5	2	45	0	\N	0.00000	768.00000		
6	2	1	389	\N	0.00000	0.00000		
7	3	303	389	\N	930.00000	0.00000		
8	3	45	0	\N	0.00000	930.00000		
9	4	1195	0	\N	1103208.00000	0.00000		
10	4	1196	0	\N	1629000.00000	0.00000		
11	4	45	0	\N	0.00000	2732208.00000		
12	4	1	389	\N	0.00000	0.00000		
13	5	1196	0	\N	810000.00000	0.00000		
14	5	45	0	\N	0.00000	810000.00000		
15	5	1	389	\N	0.00000	0.00000		
16	6	238	389	\N	57.17000	0.00000		
17	6	45	0	\N	0.00000	57.17000		
18	6	1	389	\N	0.00000	0.00000		
19	7	306	377	\N	122.95000	0.00000		
20	7	45	0	\N	0.00000	122.95000		
21	8	363	0	\N	13700.00000	0.00000		
22	8	45	0	\N	0.00000	13700.00000		
23	8	1	389	\N	0.00000	0.00000		
24	9	244	389	\N	6900.00000	0.00000		
25	9	45	0	\N	0.00000	6900.00000		
26	10	245	389	\N	19760.00000	0.00000		
27	10	45	0	\N	0.00000	19760.00000		
28	11	255	0	\N	99500.00000	0.00000		
29	11	45	0	\N	0.00000	99500.00000		
30	12	362	0	\N	19999.99000	0.00000		
31	12	45	0	\N	0.00000	19999.99000		
32	13	199	0	\N	6000000.00000	0.00000		
33	13	45	0	\N	0.00000	3711792.00000		
34	13	1195	0	\N	0.00000	1103208.00000		
35	13	1196	0	\N	0.00000	1185000.00000		
36	13	1	389	\N	0.00000	0.00000		
37	14	211	0	\N	1254000.00000	0.00000		
38	14	1196	0	\N	0.00000	1254000.00000		
39	14	1	389	\N	0.00000	0.00000		
40	15	351	0	\N	315000.00000	0.00000		
41	15	45	0	\N	0.00000	315000.00000		
42	16	362	0	\N	54500.00000	0.00000		
43	16	45	0	\N	0.00000	54500.00000		
44	16	1	389	\N	0.00000	0.00000		
45	17	348	0	\N	4725000.00000	0.00000		
46	17	45	0	\N	0.00000	4725000.00000		
47	18	316	0	\N	58.30000	0.00000		
48	18	45	0	\N	0.00000	58.30000		
\.


--
-- Data for Name: record_templates; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.record_templates (id, template_name, template_type, customer_id, vendor_id, currency_id, department_id, project_id, employee_id, taxincluded, direct_debit, ob_transaction, cb_transaction, reference, description, ordnumber, notes, ar_ap_chart_id, itime, mtime, show_details) FROM stdin;
1	monatlich_Leasingrate	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Leasingrate	Leasingrate	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
2	monatlich_Reinigung	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Reinigung	Reinigung	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
3	monatlich_Telefon	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Telefon	Telefon	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
4	monatlich_Abführung_Finanzamt_Personal	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	AbführungFinanzamtPersonal	AbführungFinanzamtPersonal	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
5	monatlich_Abführung_Krankenkasse_Personal	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	AbführungKrankenkassePersonal	AbführungKrankenkassePersonal	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
6	monatlich_GEZ	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	GEZ	GEZ	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
7	jährlich_Abo_neue_Schiffswelt	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	ZeitungsAbo	ZeitungsAbo	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
8	jährlich_Kfz-Steuer	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Kfz-Steuer	Kfz-Steuer	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
9	monatlich_Heizung	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Heizung	Heizung	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
10	monatlich_Gas,Wasser,Strom	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Gas, Wasser, Strom	Gas, Wasser, Strom	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
11	jährlich_Versicherungen	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Versicherungen	Versicherungen	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
12	jährlich_Grundsteuer	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Grundsteuer	Grundsteuer	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
13	monatlich_GehälterA	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	GehälterA	GehälterA	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
14	monatlich_GehälterB	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	GehälterMitarbeiterB	GehälterMitarbeiterB	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
15	vierteljährlich_Gewerbesteuer	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Gewerbesteuervorauszahlung 1.Quartal	Gewerbesteuervorauszahlung	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
16	vierteljährlich_Grundsteuer	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Grundsteuer 1.Quartal	Grundsteuer	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
17	vierteljährlich_Körperschaftssteuer	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Körperschaftssteuer 1.Quartal	Körperschaftssteuer	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
18	monatlich_Bankgebühren	gl_transaction	\N	\N	1	\N	\N	938	t	f	f	f	Bankgebühren Januar	Bankgebühren	\N	\N	\N	2017-05-17 12:52:42.032216	2017-05-17 12:52:42.032216	f
\.


--
-- Data for Name: requirement_spec_acceptance_statuses; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_acceptance_statuses (id, name, description, "position", itime, mtime) FROM stdin;
1	accepted	Abgenommen	1	2015-02-01 20:53:44.666305	\N
2	accepted_with_defects	Mit Mängeln abgenommen	2	2015-02-01 20:53:44.666305	\N
3	accepted_with_defects_to_be_fixed	Mit noch zu behebenden Mängeln abgenommen	3	2015-02-01 20:53:44.666305	\N
4	not_accepted	Nicht abgenommen	4	2015-02-01 20:53:44.666305	\N
\.


--
-- Data for Name: requirement_spec_complexities; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_complexities (id, description, "position", itime, mtime) FROM stdin;
1	nicht bewertet	1	2015-02-01 20:53:44.666305	\N
2	nur Anforderung	2	2015-02-01 20:53:44.666305	\N
3	gering	3	2015-02-01 20:53:44.666305	\N
4	mittel	4	2015-02-01 20:53:44.666305	\N
5	hoch	5	2015-02-01 20:53:44.666305	\N
\.


--
-- Data for Name: requirement_spec_item_dependencies; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_item_dependencies (depending_item_id, depended_item_id) FROM stdin;
\.


--
-- Data for Name: requirement_spec_items; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_items (id, requirement_spec_id, item_type, parent_id, "position", fb_number, title, description, complexity_id, risk_id, time_estimation, is_flagged, acceptance_status_id, acceptance_text, itime, mtime, order_part_id, sellprice_factor) FROM stdin;
\.


--
-- Data for Name: requirement_spec_orders; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_orders (id, requirement_spec_id, order_id, version_id, itime, mtime) FROM stdin;
\.


--
-- Data for Name: requirement_spec_parts; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_parts (id, requirement_spec_id, part_id, unit_id, qty, description, "position") FROM stdin;
\.


--
-- Data for Name: requirement_spec_pictures; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_pictures (id, requirement_spec_id, text_block_id, "position", number, description, picture_file_name, picture_content_type, picture_mtime, picture_content, picture_width, picture_height, thumbnail_content_type, thumbnail_content, thumbnail_width, thumbnail_height, itime, mtime) FROM stdin;
\.


--
-- Data for Name: requirement_spec_predefined_texts; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_predefined_texts (id, description, title, text, "position", itime, mtime, useable_for_text_blocks, useable_for_sections) FROM stdin;
\.


--
-- Data for Name: requirement_spec_risks; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_risks (id, description, "position", itime, mtime) FROM stdin;
1	nicht bewertet	1	2015-02-01 20:53:44.666305	\N
2	nur Anforderung	2	2015-02-01 20:53:44.666305	\N
3	gering	3	2015-02-01 20:53:44.666305	\N
4	mittel	4	2015-02-01 20:53:44.666305	\N
5	hoch	5	2015-02-01 20:53:44.666305	\N
\.


--
-- Data for Name: requirement_spec_statuses; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_statuses (id, name, description, "position", itime, mtime) FROM stdin;
1	planning	In Planung	1	2015-02-01 20:53:44.666305	\N
2	running	In Bearbeitung	2	2015-02-01 20:53:44.666305	\N
3	done	Fertiggestellt	3	2015-02-01 20:53:44.666305	\N
\.


--
-- Data for Name: requirement_spec_text_blocks; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_text_blocks (id, requirement_spec_id, title, text, "position", output_position, is_flagged, itime, mtime) FROM stdin;
\.


--
-- Data for Name: requirement_spec_types; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_types (id, description, "position", itime, mtime, section_number_format, function_block_number_format, template_file_name) FROM stdin;
1	Pflichtenheft	1	2015-02-01 20:53:44.666305	2015-02-01 20:53:48.990283	A00	FB000	requirement_spec
2	Konzept	2	2015-02-01 20:53:44.666305	2015-02-01 20:53:48.990283	A00	FB000	requirement_spec
\.


--
-- Data for Name: requirement_spec_versions; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_spec_versions (id, version_number, description, comment, itime, mtime, requirement_spec_id, working_copy_id) FROM stdin;
\.


--
-- Data for Name: requirement_specs; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.requirement_specs (id, type_id, status_id, customer_id, project_id, title, hourly_rate, working_copy_id, previous_section_number, previous_fb_number, is_template, itime, mtime, time_estimation, previous_picture_number) FROM stdin;
\.


--
-- Data for Name: schema_info; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.schema_info (tag, login, itime) FROM stdin;
SKR04-3804-addition	martin	2012-08-17 12:52:13.153228
chart_category_to_sgn	martin	2012-08-17 12:52:13.188319
chart_names	martin	2012-08-17 12:52:13.211102
chart_names2	martin	2012-08-17 12:52:13.253717
customer_vendor_ustid_length	martin	2012-08-17 12:52:13.286788
language_output_formatting	martin	2012-08-17 12:52:13.330413
rename_buchungsgruppen_accounts_16_19_percent	martin	2012-08-17 12:52:13.354859
tax_id_if_taxkey_is_0	martin	2012-08-17 12:52:13.388683
units_translations_and_singular_plural_distinction	martin	2012-08-17 12:52:13.422654
tax_primary_key_taxkeys_foreign_keys	martin	2012-08-17 12:52:13.572486
invalid_taxkesy	martin	2012-08-17 12:52:13.664699
release_2_4_1	martin	2012-08-17 12:52:13.68934
PgCommaAggregateFunction	martin	2012-08-17 12:52:13.707651
ap_ar_orddate_quodate	martin	2012-08-17 12:52:13.72887
buchungsgruppen_sortkey	martin	2012-08-17 12:52:13.754054
customer_vendor_taxzone_id	martin	2012-08-17 12:52:13.79193
drafts	martin	2012-08-17 12:52:13.83079
employee_no_limits	martin	2012-08-17 12:52:14.039258
globalprojectnumber_ap_ar_oe	martin	2012-08-17 12:52:14.229025
oe_delivered	martin	2012-08-17 12:52:14.267241
oe_is_salesman	martin	2012-08-17 12:52:14.288545
parts_ean	martin	2012-08-17 12:52:14.31192
payment_terms_sortkey	martin	2012-08-17 12:52:14.326943
payment_terms_translation	martin	2012-08-17 12:52:14.346212
project	martin	2012-08-17 12:52:14.448428
status_history	martin	2012-08-17 12:52:14.476002
units_sortkey	martin	2012-08-17 12:52:14.517301
history_erp	martin	2012-08-17 12:52:14.55061
marge_initial	martin	2012-08-17 12:52:14.725702
ustva_setup_2007	martin	2012-08-17 12:52:14.768104
history_erp_snumbers	martin	2012-08-17 12:52:14.794956
tax_description_without_percentage_skr04	martin	2012-08-17 12:52:14.809788
ustva_setup_2007_update_chart_taxkeys_tax	martin	2012-08-17 12:52:14.847436
fix_taxdescription	martin	2012-08-17 12:52:14.915408
ustva_setup_2007_update_chart_taxkeys_tax_add_missing_tax_accounts	martin	2012-08-17 12:52:14.953417
tax_description_without_percentage	martin	2012-08-17 12:52:14.965569
release_2_4_2	martin	2012-08-17 12:52:14.996856
COA_Account_Settings001	martin	2012-08-17 12:52:15.010616
COA_Account_Settings002	martin	2012-08-17 12:52:15.025357
USTVA_abstraction	martin	2012-08-17 12:52:15.041337
ap_storno	martin	2012-08-17 12:52:15.455431
ar_storno	martin	2012-08-17 12:52:15.474631
cb_ob_transaction	martin	2012-08-17 12:52:15.495938
dunning_config_interest_rate	martin	2012-08-17 12:52:15.533536
dunning_dunning_id	martin	2012-08-17 12:52:15.57583
dunning_invoices_for_fees	martin	2012-08-17 12:52:15.605703
gl_storno	martin	2012-08-17 12:52:15.655669
invalid_taxkeys_2	martin	2012-08-17 12:52:15.718662
transaction_description	martin	2012-08-17 12:52:15.742981
USTVA_at	martin	2012-08-17 12:52:15.772648
ar_ap_storno_id	martin	2012-08-17 12:52:15.786337
dunning_invoices_per_dunning_level	martin	2012-08-17 12:52:15.804928
tax_report_table_name	martin	2012-08-17 12:52:15.827209
release_2_4_3	martin	2012-08-17 12:52:15.847508
acc_trans_without_oid	martin	2012-08-17 12:52:15.867129
bank_accounts	martin	2012-08-17 12:52:16.31438
change_makemodel_vendor_id	martin	2012-08-17 12:52:16.459988
custom_variables	martin	2012-08-17 12:52:16.483057
direct_debit	martin	2012-08-17 12:52:16.735244
follow_ups	martin	2012-08-17 12:52:16.759949
oe_employee_id_foreignkey	martin	2012-08-17 12:52:17.133878
price_factors	martin	2012-08-17 12:52:17.154771
sic_code	martin	2012-08-17 12:52:17.321373
todo_config	martin	2012-08-17 12:52:17.339665
trigger_assembly_update_lastcost	martin	2012-08-17 12:52:17.368149
units_no_type_distinction	martin	2012-08-17 12:52:17.403351
warehouse	martin	2012-08-17 12:52:17.421306
delivery_orders	martin	2012-08-17 12:52:17.781989
transfer_type_shipped	martin	2012-08-17 12:52:18.686577
warehouse2	martin	2012-08-17 12:52:18.708113
ar_add_donumber	martin	2012-08-17 12:52:18.727893
ar_add_invnumber_for_credit_note	martin	2012-08-17 12:52:18.747494
record_links	martin	2012-08-17 12:52:18.768749
transaction_description_not_null	martin	2012-08-17 12:52:19.030902
release_2_6_0	martin	2012-08-17 12:52:19.068249
auth_enable_sales_all_edit	martin	2012-08-17 12:52:19.092601
custom_variables_parts_services_assemblies	martin	2012-08-17 12:52:19.110388
custom_variables_valid	martin	2012-08-17 12:52:19.139995
delivery_orders_fields_for_invoices	martin	2012-08-17 12:52:19.22766
fix_acc_trans_ap_taxkey_bug	martin	2012-08-17 12:52:19.259947
fix_datepaid	martin	2012-08-17 12:52:19.290175
generic_translations	martin	2012-08-17 12:52:19.332369
has_sernumber	martin	2012-08-17 12:52:19.660979
rundungsfehler_korrigieren_BUG1328-2	martin	2012-08-17 12:52:19.697054
sepa	martin	2012-08-17 12:52:19.711158
update_date_paid	martin	2012-08-17 12:52:19.8824
warehouse3	martin	2012-08-17 12:52:19.912383
warehouse_add_bestbefore	martin	2012-08-17 12:52:19.931986
add_more_constraints_fibu_projekt_xplace3	martin	2012-08-17 12:52:19.987102
cp_greeting_migration	martin	2012-08-17 12:52:20.005819
release_2_6_1	martin	2012-08-17 12:52:20.030761
acc_trans_id_uniqueness	martin	2012-08-17 12:52:20.048754
add_ar_paid_defaults	martin	2012-08-17 12:52:20.06998
add_makemodel_prices	martin	2012-08-17 12:52:20.089302
csv_import_profiles	martin	2012-08-17 12:52:20.121816
customer_long_entries	martin	2012-08-17 12:52:20.496752
drop_yearend	martin	2012-08-17 12:52:22.665319
emmvee_background_jobs	martin	2012-08-17 12:52:22.679974
invalid_entries_in_custom_variables_validity	martin	2012-08-17 12:52:23.068301
payment_terms_translation2	martin	2012-08-17 12:52:23.090664
periodic_invoices	martin	2012-08-17 12:52:23.121729
schema_normalization_1	martin	2012-08-17 12:52:23.285752
sepa_in	martin	2012-08-17 12:52:23.577712
shipto_add_cp_gender	martin	2012-08-17 12:52:23.618499
skr03_04_bwa_zuordnung_konten_4250_4610	martin	2012-08-17 12:52:23.638063
skr04_fix_category_3151_3160_3170	martin	2012-08-17 12:52:23.675486
ustva_2010	martin	2012-08-17 12:52:23.700275
emmvee_background_jobs_2	martin	2012-08-17 12:52:23.93877
periodic_invoices_background_job	martin	2012-08-17 12:52:24.214245
schema_normalization_2	martin	2012-08-17 12:52:24.232433
schema_normalization_3	martin	2012-08-17 12:52:27.723338
release_2_6_2	martin	2012-08-17 12:52:27.824789
chart_taxkey_id_from_taxkeys	martin	2012-08-17 12:52:27.840827
custom_variables_indices	martin	2012-08-17 12:52:27.938035
custom_variables_indices_2	martin	2012-08-17 12:52:28.068536
units_id	martin	2012-08-17 12:52:28.133868
release_2_6_3	martin	2012-08-17 12:52:28.327471
auth_enable_ct_all_edit	martin	2012-08-17 12:52:28.352358
auth_enable_edit_prices	martin	2012-08-17 12:52:28.372009
customer_add_constraints	martin	2012-08-17 12:52:28.387706
customer_vendor_add_currency	martin	2012-08-17 12:52:28.42282
defaults_add_language_id	martin	2012-08-17 12:52:28.439622
delivery_order_items_add_pricegroup_id	martin	2012-08-17 12:52:28.455316
department_drop_role	martin	2012-08-17 12:52:28.468766
drop_datevexport	martin	2012-08-17 12:52:28.487185
employee_deleted	martin	2012-08-17 12:52:28.506819
license_invoice_drop	martin	2012-08-17 12:52:28.871894
oe_customer_vendor_fkeys	martin	2012-08-17 12:52:28.896887
parts_add_unit_foreign_key	martin	2012-08-17 12:52:28.916159
umstellung_eur	martin	2012-08-17 12:52:28.943665
ustva_2010_fixes	martin	2012-08-17 12:52:28.96873
vendor_add_constraints	martin	2012-08-17 12:52:28.988527
warehouse_alter_chargenumber	martin	2012-08-17 12:52:29.020954
release_2_7_0	martin	2012-08-17 12:52:29.038142
customer_vendor_phone_no_limits	martin	2012-08-17 12:52:29.049641
self_test_background_job	martin	2012-08-17 12:52:29.883556
contacts_add_street_and_zipcode_and_city	martin	2012-09-12 11:22:03.488002
custom_variables_sub_module_not_null	martin	2012-09-12 11:22:03.525921
customer_add_taxincluded_checked	martin	2012-09-12 11:22:03.550725
customer_add_taxincluded_checked_2	martin	2012-09-12 11:22:04.000061
record_links_post_delete_triggers	martin	2012-09-19 14:08:32.732266
buchungsgruppe_variable	geoff	2012-10-08 14:50:03.661907
schema_normalization_4	geoff	2012-10-08 14:50:03.689212
record_links_post_delete_triggers2	geoff	2012-10-09 14:46:30.450564
defaults_datev_check	steigmann	2012-11-11 16:38:33.768657
defaults_posting_config	steigmann	2012-11-11 16:38:34.63325
defaults_posting_records_config	steigmann	2012-11-11 16:38:34.819691
defaults_show_bestbefore	steigmann	2012-11-11 16:38:35.393329
defaults_show_delete_on_orders	steigmann	2012-11-11 16:38:35.563737
defaults_show_mark_as_paid_config	steigmann	2012-11-11 16:38:36.145241
chart_type_skonto	steigmann	2012-11-15 16:39:19.170385
contacts_convert_cp_birthday_to_date	steigmann	2012-11-15 16:39:19.261403
convert_curr_to_text	steigmann	2012-11-15 16:39:19.290553
finanzamt_update_fa_bufa_nr_hamburg	steigmann	2012-11-15 16:39:22.064261
rename_buchungsgruppe_16_19_to_19	steigmann	2012-11-22 21:19:01.237114
ustva_setup_2007_update_chart_taxkeys_tax_skr04	steigmann	2012-11-22 21:19:01.271533
release_3_0_0	steigmann	2013-04-04 10:28:18.307724
acc_trans_constraints	steigmann	2014-11-08 12:28:28.322188
add_depositor_for_customer_vendor	steigmann	2014-11-08 12:28:28.389168
csv_import_profiles_2	steigmann	2014-11-08 12:28:28.619626
delete_translations_on_payment_term_delete	steigmann	2014-11-08 12:28:28.649227
background_jobs_3	steigmann	2014-11-08 12:28:28.951798
csv_import_report_cache	steigmann	2014-11-08 12:28:28.968628
csv_import_reports_add_numheaders	steigmann	2014-11-08 12:28:29.778388
acc_trans_booleans_not_null	steigmann	2014-11-08 12:28:29.803823
accounts_tax_office_bad_homburg	steigmann	2014-11-08 12:28:29.83054
add_chart_link_to_acc_trans	steigmann	2014-11-08 12:28:29.854232
add_customer_mandator_id	steigmann	2014-11-08 12:28:30.031324
add_fk_to_gl	steigmann	2014-11-08 12:28:30.110988
add_warehouse_defaults	steigmann	2014-11-08 12:28:30.247449
ap_add_direct_debit	steigmann	2014-11-08 12:28:30.285025
ap_deliverydate	steigmann	2014-11-08 12:28:30.317474
ar_add_direct_debit	steigmann	2014-11-08 12:28:30.349032
ar_ap_foreign_keys	steigmann	2014-11-08 12:28:30.401039
ar_ap_gl_delete_triggers_deletion_from_acc_trans	steigmann	2014-11-08 12:28:30.474287
background_job_change_create_periodic_invoices_to_daily	steigmann	2014-11-08 12:28:30.527281
charts_without_taxkey	steigmann	2014-11-08 12:28:30.544716
cleanup_after_customer_vendor_deletion	steigmann	2014-11-08 12:28:30.570943
clients	steigmann	2014-11-08 12:28:30.59494
contacts_add_cp_position	steigmann	2014-11-08 12:28:30.636016
custom_variable_configs_column_type_text	steigmann	2014-11-08 12:28:30.662152
custom_variables_validity_index	steigmann	2014-11-08 12:28:30.752194
defaults_add_max_future_booking_intervall	steigmann	2014-11-08 12:28:30.865743
defaults_feature	steigmann	2014-11-08 12:28:31.106607
defaults_feature2	steigmann	2014-11-08 12:28:32.258272
del_exchangerate	steigmann	2014-11-08 12:28:32.577747
delete_close_follow_ups_when_order_is_deleted_closed_fkey_deletion	steigmann	2014-11-08 12:28:32.613113
delete_customertax_vendortax_partstax	steigmann	2014-11-08 12:28:32.831482
delete_translations_on_tax_delete	steigmann	2014-11-08 12:28:32.899109
delivery_terms	steigmann	2014-11-08 12:28:32.943322
drop_audittrail	steigmann	2014-11-08 12:28:33.217076
drop_dpt_trans	steigmann	2014-11-08 12:28:33.248227
drop_gifi	steigmann	2014-11-08 12:28:33.272869
drop_rma	steigmann	2014-11-08 12:28:33.297389
employee_drop_columns	steigmann	2014-11-08 12:28:33.329398
erzeugnisnummern	steigmann	2014-11-08 12:28:33.358255
fix_datepaid_for_sepa_transfers	steigmann	2014-11-08 12:28:33.486785
gewichte	steigmann	2014-11-08 12:28:33.544396
gl_add_employee_foreign_key	steigmann	2014-11-08 12:28:33.743397
oe_delivery_orders_foreign_keys	steigmann	2014-11-08 12:28:33.786885
orderitems_delivery_order_items_invoice_foreign_keys	steigmann	2014-11-08 12:28:33.900317
parts_translation_foreign_keys	steigmann	2014-11-08 12:28:33.941525
project_customer_type_valid	steigmann	2014-11-08 12:28:33.978248
project_types	steigmann	2014-11-08 12:28:34.001969
rm_whitespaces	steigmann	2014-11-08 12:28:34.204287
add_tax_id_to_acc_trans	steigmann	2014-11-08 12:28:34.255428
add_warehouse_client_config_default	steigmann	2014-11-08 12:28:34.475733
balance_startdate_method	steigmann	2014-11-08 12:28:35.028094
currencies	steigmann	2014-11-08 12:28:35.063289
custom_variables_delete_via_trigger	steigmann	2014-11-08 12:28:35.437833
default_bin_parts	steigmann	2014-11-08 12:28:35.532701
defaults_signature	steigmann	2014-11-08 12:28:35.585925
delete_close_follow_ups_when_order_is_deleted_closed	steigmann	2014-11-08 12:28:35.618185
delete_cust_vend_tax	steigmann	2014-11-08 12:28:35.72675
delete_translations_on_delivery_term_delete	steigmann	2014-11-08 12:28:35.761272
drop_gifi_2	steigmann	2014-11-08 12:28:35.781682
oe_do_delete_via_trigger	steigmann	2014-11-08 12:28:35.79214
remove_role_from_employee	steigmann	2014-11-08 12:28:35.936656
tax_constraints	steigmann	2014-11-08 12:28:35.966717
add_fkey_tax_id_to_acc_trans	steigmann	2014-11-08 12:28:36.223838
custom_variables_delete_via_trigger_2	steigmann	2014-11-08 12:28:36.24624
steuerfilterung	steigmann	2014-11-08 12:28:36.279816
release_3_1_0	steigmann	2014-11-08 12:28:36.309625
sales_quotation_order_probability_expected_billing_date	steigmann	2015-02-01 20:53:44.552573
check_bin_belongs_to_wh_trigger	steigmann	2015-02-01 20:53:44.594742
periodic_invoices_first_billing_date	steigmann	2015-02-01 20:53:44.624072
invoice_add_donumber	steigmann	2015-02-01 20:53:44.643149
requirement_specs	steigmann	2015-02-01 20:53:44.666305
defaults_customer_hourly_rate	steigmann	2015-02-01 20:53:46.808679
project_bob_attributes	steigmann	2015-02-01 20:53:46.838027
requirement_spec_items_item_type_index	steigmann	2015-02-01 20:53:48.675958
requirement_spec_items_update_trigger_fix	steigmann	2015-02-01 20:53:48.757141
requirement_spec_pictures	steigmann	2015-02-01 20:53:48.796386
requirement_spec_predefined_texts_for_sections	steigmann	2015-02-01 20:53:48.934875
requirement_spec_types_number_formats	steigmann	2015-02-01 20:53:48.961426
requirement_spec_types_template_file_name	steigmann	2015-02-01 20:53:48.990283
requirement_specs_print_templates	steigmann	2015-02-01 20:53:49.007597
requirement_specs_section_templates	steigmann	2015-02-01 20:53:49.030635
project_bob_attributes_itime_default_fix	steigmann	2015-02-01 20:53:49.053358
requirement_spec_delete_trigger_fix	steigmann	2015-02-01 20:53:49.074792
requirement_spec_type_for_template_fix	steigmann	2015-02-01 20:53:49.114426
requirement_specs_orders	steigmann	2015-02-01 20:53:49.134572
unit_foreign_key_for_line_items	steigmann	2015-02-01 20:53:49.292011
project_bob_attributes_fix_project_status_table_name	steigmann	2015-02-01 20:53:49.322632
requirement_spec_delete_trigger_fix2	steigmann	2015-02-01 20:53:49.342323
requirement_spec_items_update_trigger_fix2	steigmann	2015-02-01 20:53:49.401035
add_warehouse_client_config_default2	steigmann	2015-02-01 20:53:49.434643
background_jobs_clean_auth_sessions	steigmann	2015-02-01 20:53:49.756721
bank_accounts_add_name	steigmann	2015-02-01 20:53:49.773907
column_type_text_instead_of_varchar	steigmann	2015-02-01 20:53:49.79554
custom_variable_partsgroups	steigmann	2015-02-01 20:53:49.836715
defaults_add_delivery_plan_config	steigmann	2015-02-01 20:53:49.914649
defaults_global_bcc	steigmann	2015-02-01 20:53:50.487619
defaults_only_customer_projects_in_sales	steigmann	2015-02-01 20:53:50.751129
defaults_reqdate_interval	steigmann	2015-02-01 20:53:50.784238
defaults_require_transaction_description	steigmann	2015-02-01 20:53:51.043215
defaults_sales_purchase_process_limitations	steigmann	2015-02-01 20:53:51.074339
defaults_transport_cost_reminder	steigmann	2015-02-01 20:53:51.114343
delete_cvars_on_trans_deletion	steigmann	2015-02-01 20:53:51.141493
invoice_positions	steigmann	2015-02-01 20:53:51.235169
orderitems_delivery_order_items_positions	steigmann	2015-02-01 20:53:51.320654
price_rules	steigmann	2015-02-01 20:53:51.425794
price_source_client_config	steigmann	2015-02-01 20:53:51.675906
project_status_default_entries	steigmann	2015-02-01 20:53:51.698514
record_links_orderitems_delete_triggers	steigmann	2015-02-01 20:53:51.72127
recorditem_active_price_source	steigmann	2015-02-01 20:53:51.748061
remove_redundant_customer_vendor_delete_triggers	steigmann	2015-02-01 20:53:52.593963
requirement_spec_edit_html	steigmann	2015-02-01 20:53:52.619843
requirement_spec_parts	steigmann	2015-02-01 20:53:52.738458
taxzone_charts	steigmann	2015-02-01 20:53:52.877175
vendor_long_entries	steigmann	2015-02-01 20:53:52.966935
warehouse_add_delivery_order_items_stock_id	steigmann	2015-02-01 20:53:53.101816
column_type_text_instead_of_varchar2	steigmann	2015-02-01 20:53:53.13572
convert_taxzone	steigmann	2015-02-01 20:53:53.159827
defaults_transport_cost_reminder_id	steigmann	2015-02-01 20:53:53.195283
delete_cvars_on_trans_deletion_fix1	steigmann	2015-02-01 20:53:53.224161
price_rules_cascade_delete	steigmann	2015-02-01 20:53:53.239354
recorditem_active_record_source	steigmann	2015-02-01 20:53:53.257218
remove_redundant_cvar_delete_triggers	steigmann	2015-02-01 20:53:53.955272
taxzone_sortkey	steigmann	2015-02-01 20:53:53.985217
column_type_text_instead_of_varchar3	steigmann	2015-02-01 20:53:53.999942
delete_cvars_on_trans_deletion_fix2	steigmann	2015-02-01 20:53:54.020179
price_rules_discount	steigmann	2015-02-01 20:53:54.037695
taxzone_default_id	steigmann	2015-02-01 20:53:54.071098
change_taxzone_id_0	steigmann	2015-02-01 20:53:54.12173
tax_zones_obsolete	steigmann	2015-02-01 20:53:54.178434
taxzone_id_in_oe_delivery_orders	steigmann	2015-02-01 20:53:54.391358
remove_obsolete_trigger	steigmann	2015-12-14 07:39:56.709005
custom_variables_delete_via_trigger_requirement_specs	steigmann	2015-12-14 07:39:56.776353
defaults_sales_purchase_order_show_ship_missing_column	steigmann	2015-12-14 07:39:56.818648
periodic_invoices_order_value_periodicity	steigmann	2015-12-14 07:39:56.852512
oe_ar_ap_delivery_orders_edit_notes_as_html	steigmann	2015-12-14 07:39:57.045972
transfer_out_sales_invoice	steigmann	2015-12-14 07:39:57.140371
ar_ap_fix_notes_as_html_for_non_invoices	steigmann	2015-12-14 07:39:57.248817
release_3_2_0	steigmann	2015-12-14 07:39:57.264255
bank_accounts_unique_chart_constraint	steigmann	2015-12-14 07:39:57.272567
bank_transactions	steigmann	2015-12-14 07:39:57.323018
bankaccounts_reconciliation	steigmann	2015-12-14 07:39:57.398128
bankaccounts_sortkey_and_obsolete	steigmann	2015-12-14 07:39:57.412534
defaults_drop_delivery_plan_config	steigmann	2015-12-14 07:39:57.506129
delete_invalidated_custom_variables_for_parts	steigmann	2015-12-14 07:39:57.514347
invoices_amount_paid_not_null	steigmann	2015-12-14 07:39:57.522655
letter	steigmann	2015-12-14 07:39:57.537394
payment_terms_automatic_calculation	steigmann	2015-12-14 07:39:57.606425
remove_terms_add_payment_id	steigmann	2015-12-14 07:39:57.614672
sepa_items_payment_type	steigmann	2015-12-14 07:39:57.630178
tax_skonto_automatic	steigmann	2015-12-14 07:39:57.640513
automatic_reconciliation	steigmann	2015-12-14 07:39:57.657639
letter_country_page	steigmann	2015-12-14 07:39:57.691082
letter_date_type	steigmann	2015-12-14 07:39:57.699383
letter_draft	steigmann	2015-12-14 07:39:57.707852
letter_reference	steigmann	2015-12-14 07:39:57.777871
letter_emplyee_salesman	steigmann	2015-12-14 07:39:57.793456
letter_notes_internal	steigmann	2015-12-14 07:39:57.807836
letter_cp_id	steigmann	2015-12-14 07:39:57.817645
release_3_3_0	steigmann	2015-12-14 07:39:57.832713
defaults_add_precision	steigmann	2016-05-10 11:01:10.1181
first_aggregator	steigmann	2016-05-10 11:01:10.264058
defaults_add_rnd_accno_ids	steigmann	2016-05-10 11:01:10.287535
defaults_drop_delivery_plan_calculate_transferred_do	steigmann	2016-05-10 11:01:10.299901
requirement_spec_parts_foreign_key_cascade	steigmann	2016-05-10 11:01:10.312707
ar_ap_default	steigmann	2016-05-10 11:01:10.346954
use_html_in_letter	steigmann	2016-05-10 11:01:10.364647
add_project_defaults	steigmann	2016-05-10 11:01:10.37621
buchungsgruppen_forein_keys	steigmann	2016-05-10 11:01:10.482466
chart_pos_er	steigmann	2016-05-10 11:01:10.498516
customer_vendor_shipto_add_gln	steigmann	2016-05-10 11:01:10.51201
defaults_order_warn_duplicate_parts	steigmann	2016-05-10 11:01:10.528892
defaults_show_longdescription_select_item	steigmann	2016-05-10 11:01:10.630976
email_journal	steigmann	2016-05-10 11:01:10.734726
periodic_invoices_direct_debit_flag	steigmann	2016-05-10 11:01:10.86406
project_mtime_trigger	steigmann	2016-05-10 11:01:10.964573
remove_index	steigmann	2016-05-10 11:01:10.974388
sepa_contained_in_message_ids	steigmann	2016-05-10 11:01:11.41556
defaults_enable_email_journal	steigmann	2016-05-10 11:01:11.496869
release_3_4_0	steigmann	2016-05-10 11:01:11.621604
defaults_add_features	steigmann	2016-08-10 11:18:37.762869
add_parts_price_history	steigmann	2016-08-10 11:18:38.995168
defaults_add_quick_search_modules	steigmann	2016-08-10 11:18:39.327517
delete_from_generic_translations_on_language_deletion	steigmann	2016-08-10 11:18:39.339421
letter_cleanup	steigmann	2016-08-10 11:18:39.48979
payment_terms_for_invoices	steigmann	2016-08-10 11:18:39.539917
periodic_invoices_send_email	steigmann	2016-08-10 11:18:39.581485
transfer_type_assembled	steigmann	2016-08-10 11:18:39.644683
add_parts_price_history2	steigmann	2016-08-10 11:18:39.682734
inventory_fix_shippingdate_assemblies	steigmann	2016-08-10 11:18:39.695224
release_3_4_1	steigmann	2016-08-10 11:18:39.720233
auto_delete_sepa_export_items_on_ap_ar_deletion	steigmann	2017-05-17 12:52:38.747864
csv_mt940_add_profile	steigmann	2017-05-17 12:52:38.834285
re_add_sepa_export_items_foreign_keys	steigmann	2017-05-17 12:52:38.874208
requirement_spec_items_price_factor	steigmann	2017-05-17 12:52:38.893005
defaults_bcc_to_login	steigmann	2017-05-17 12:52:38.918112
create_part_if_not_found	steigmann	2017-05-17 12:52:39.0893
bank_transactions_type	steigmann	2017-05-17 12:52:39.21015
auto_delete_reconciliation_links_on_acc_trans_deletion	steigmann	2017-05-17 12:52:39.218311
bank_transactions_type2	steigmann	2017-05-17 12:52:39.22692
inventory_shippingdate_not_null	steigmann	2017-05-17 12:52:39.235114
add_test_mode_to_csv_import_report	steigmann	2017-05-17 12:52:39.24359
add_warehouse_for_assembly	steigmann	2017-05-17 12:52:39.252267
assembly_parts_foreign_key	steigmann	2017-05-17 12:52:39.393554
assembly_position	steigmann	2017-05-17 12:52:39.402893
create_record_template_tables	steigmann	2017-05-17 12:52:39.41113
customer_klass_rename_to_pricegroup_id_and_foreign_key	steigmann	2017-05-17 12:52:39.549372
defaults_add_feature_experimental	steigmann	2017-05-17 12:52:39.563192
defaults_add_finanzamt_data	steigmann	2017-05-17 12:52:39.681721
eur_bwa_category_views	steigmann	2017-05-17 12:52:39.697247
filemanagement_feature	steigmann	2017-05-17 12:52:39.715961
files	steigmann	2017-05-17 12:52:40.854383
letter_vendorletter	steigmann	2017-05-17 12:52:40.927136
makemodel_add_vendor_foreign_key	steigmann	2017-05-17 12:52:40.935733
part_classifications	steigmann	2017-05-17 12:52:40.944048
part_type_enum	steigmann	2017-05-17 12:52:41.287138
partsgroup_sortkey_obsolete	steigmann	2017-05-17 12:52:41.316269
payment_terms_obsolete	steigmann	2017-05-17 12:52:41.429404
periodic_invoices_order_value_periodicity2	steigmann	2017-05-17 12:52:41.521256
pricegroup_sortkey_obsolete	steigmann	2017-05-17 12:52:41.529213
prices_delete_cascade	steigmann	2017-05-17 12:52:41.663294
prices_unique	steigmann	2017-05-17 12:52:41.686146
remove_alternate_from_parts	steigmann	2017-05-17 12:52:41.721876
sepa_export_items	steigmann	2017-05-17 12:52:41.730111
sepa_reference_add_vc_vc_id	steigmann	2017-05-17 12:52:41.738405
user_preferences	steigmann	2017-05-17 12:52:41.889632
assembly_parts_foreign_key2	steigmann	2017-05-17 12:52:41.981035
assortment_items	steigmann	2017-05-17 12:52:41.989408
convert_drafts_to_record_templates	steigmann	2017-05-17 12:52:42.032216
email_journal_attachments_add_fileid	steigmann	2017-05-17 12:52:42.106797
part_classification_report_separate	steigmann	2017-05-17 12:52:42.240829
part_remove_unneeded_fields	steigmann	2017-05-17 12:52:42.332123
assortment_charge	steigmann	2017-05-17 12:52:42.340452
release_3_5_0	steigmann	2017-07-18 15:22:35.42386
get_shipped_qty_config	steigmann	2017-11-15 10:44:14.937711
alter_record_template_tables	steigmann	2017-11-15 10:44:15.22103
shops	steigmann	2017-11-15 10:44:15.312986
trigram_extension	steigmann	2017-11-15 10:44:15.404782
customer_orderlock	steigmann	2017-11-15 10:44:15.422759
shop_1	steigmann	2017-11-15 10:44:15.607382
shop_2	steigmann	2017-11-15 10:44:15.749608
shop_3	steigmann	2017-11-15 10:44:15.757567
shop_orders	steigmann	2017-11-15 10:44:15.898777
shop_parts	steigmann	2017-11-15 10:44:16.034051
trigram_indices	steigmann	2017-11-15 10:44:16.13698
trigram_indices_webshop	steigmann	2017-11-15 10:44:16.221963
shop_orders_add_active_price_source	steigmann	2017-11-15 10:44:16.229996
shopimages	steigmann	2017-11-15 10:44:16.238466
shop_orders_update_1	steigmann	2017-11-15 10:44:16.40938
shopimages_2	steigmann	2017-11-15 10:44:16.433234
shopimages_3	steigmann	2017-11-15 10:44:16.448324
shop_orders_update_2	steigmann	2017-11-15 10:44:16.457969
shop_orders_update_3	steigmann	2017-11-15 10:44:16.472772
add_stocktaking_preselects_client_config_default	steigmann	2019-01-03 12:09:48.517991
transfer_type_stocktaking	steigmann	2019-01-03 12:09:48.684302
add_stocktaking_qty_threshold_client_config_default	steigmann	2019-01-03 12:09:48.802145
defaults_add_feature_experimental2	steigmann	2019-01-03 12:09:48.999093
defaults_filemanagement_remove_doc_database	steigmann	2019-01-03 12:09:49.100905
custom_data_export	steigmann	2019-01-03 12:09:49.112374
custom_data_export_default_values_for_parameters	steigmann	2019-01-03 12:09:49.254916
release_3_5_1	steigmann	2019-01-03 12:09:49.267099
create_part_customerprices	steigmann	2019-01-03 12:09:49.279897
datev_export_format	steigmann	2019-01-03 12:09:49.409885
stocktakings	steigmann	2019-01-03 12:09:49.477179
release_3_5_2	steigmann	2019-01-03 12:09:49.548003
accounts_tax_office_leonberg	steigmann	2019-01-03 12:09:49.561451
defaults_order_warn_no_deliverydate	steigmann	2019-01-03 12:09:49.611224
sepa_recommended_execution_date	steigmann	2019-01-03 12:09:49.722486
release_3_5_3	steigmann	2019-01-03 12:09:49.96458
displayable_name_prefs_defaults	steigmann	2019-07-27 11:00:06.270507
add_emloyee_project_assignment_for_viewing_invoices	steigmann	2019-07-27 11:00:06.319817
bank_transactions_check_constraint_invoice_amount	steigmann	2019-07-27 11:00:06.361347
contacts_add_main_contact	steigmann	2019-07-27 11:00:06.369714
customer_add_commercial_court	steigmann	2019-07-27 11:00:06.453386
customer_add_fields	steigmann	2019-07-27 11:00:06.46133
customer_add_generic_mail_delivery	steigmann	2019-07-27 11:00:06.469517
defaults_delivery_date_interval	steigmann	2019-07-27 11:00:06.478208
defaults_doc_email_attachment	steigmann	2019-07-27 11:00:06.545958
defaults_invoice_mail_priority	steigmann	2019-07-27 11:00:06.731391
defaults_set_dunning_creator	steigmann	2019-07-27 11:00:06.798991
drop_payment_terms_ranking	steigmann	2019-07-27 11:00:06.865386
dunning_foreign_key_for_trans_id	steigmann	2019-07-27 11:00:06.873352
record_links_bt_acc_trans	steigmann	2019-07-27 11:00:06.881695
record_links_post_delete_triggers_gl2	steigmann	2019-07-27 11:00:06.923714
release_3_5_4	steigmann	2019-07-27 11:00:06.939538
remove_comma_aggregate_functions	steigmann	2020-05-26 07:54:15.903699
add_node_id_to_background_jobs	steigmann	2020-05-26 07:54:15.955237
bank_transaction_acc_trans_remove_wrong_primary_key	steigmann	2020-05-26 07:54:15.980079
bank_transactions_nuke_trailing_spaces_in_purpose	steigmann	2020-05-26 07:54:16.013907
defaults_split_address	steigmann	2020-05-26 07:54:16.022712
defaults_workflow_po_ap_chart_id	steigmann	2020-05-26 07:54:16.03913
defaults_year_end_charts	steigmann	2020-05-26 07:54:16.047485
inventory_itime_parts_id_index	steigmann	2020-05-26 07:54:16.064873
inventory_parts_id_index	steigmann	2020-05-26 07:54:16.131326
tax_removed_taxnumber	steigmann	2020-05-26 07:54:16.164573
release_3_5_5	steigmann	2020-05-26 07:54:16.172845
bank_account_flag_for_zugferd_usage	steigmann	2020-05-26 07:54:16.180994
contact_departments_own_table	steigmann	2020-05-26 07:54:16.189614
contact_titles_own_table	steigmann	2020-05-26 07:54:16.299111
customer_create_zugferd_invoices	steigmann	2020-05-26 07:54:16.407521
customer_vendor_add_natural_person	steigmann	2020-05-26 07:54:16.416
defaults_contact_departments_use_textfield	steigmann	2020-05-26 07:54:17.045976
defaults_contact_titles_use_textfield	steigmann	2020-05-26 07:54:17.094508
defaults_create_zugferd_data	steigmann	2020-05-26 07:54:17.128602
defaults_vc_greetings_use_textfield	steigmann	2020-05-26 07:54:17.151763
dunning_config_print_original_invoice	steigmann	2020-05-26 07:54:17.169955
greetings_own_table	steigmann	2020-05-26 07:54:17.196069
defaults_zugferd_test_mode	steigmann	2020-05-26 07:54:17.478552
gl_add_deliverydate	steigmann	2020-07-04 11:03:04.68685
konjunkturpaket_2020_SKR03	steigmann	2020-07-04 11:03:04.743809
remove_double_tax_entries_skr04	steigmann	2020-07-04 11:03:04.755688
remove_taxkey_15_17_skr04	steigmann	2020-07-04 11:03:04.772003
konjunkturpaket_2020_SKR04	steigmann	2020-07-04 11:03:04.786995
konjunkturpaket_2020	steigmann	2020-07-04 11:03:04.806748
\.


--
-- Data for Name: sepa_export; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sepa_export (id, employee_id, executed, closed, itime, vc) FROM stdin;
\.


--
-- Data for Name: sepa_export_message_ids; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.sepa_export_message_ids (id, sepa_export_id, message_id) FROM stdin;
\.


--
-- Data for Name: shipto; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.shipto (trans_id, shiptoname, shiptodepartment_1, shiptodepartment_2, shiptostreet, shiptozipcode, shiptocity, shiptocountry, shiptocontact, shiptophone, shiptofax, shiptoemail, itime, mtime, module, shipto_id, shiptocp_gender, shiptogln) FROM stdin;
\.


--
-- Data for Name: shop_images; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.shop_images (id, file_id, "position", thumbnail_content, org_file_width, org_file_height, thumbnail_content_type, itime, mtime, object_id) FROM stdin;
\.


--
-- Data for Name: shop_order_items; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.shop_order_items (id, shop_trans_id, shop_order_id, description, partnumber, "position", tax_rate, quantity, price, active_price_source) FROM stdin;
\.


--
-- Data for Name: shop_parts; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.shop_parts (id, shop_id, part_id, shop_description, itime, mtime, last_update, show_date, sortorder, front_page, active, shop_category, active_price_source, metatag_keywords, metatag_description, metatag_title) FROM stdin;
\.


--
-- Data for Name: status; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.status (trans_id, formname, printed, emailed, spoolfile, chart_id, itime, mtime, id) FROM stdin;
\.


--
-- Data for Name: stocktakings; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stocktakings (id, inventory_id, warehouse_id, bin_id, parts_id, employee_id, qty, comment, chargenumber, bestbefore, cutoff_date, itime, mtime) FROM stdin;
\.


--
-- Data for Name: tax; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tax (chart_id, rate, taxkey, taxdescription, itime, mtime, id, chart_categories, skonto_sales_chart_id, skonto_purchase_chart_id) FROM stdin;
\N	0.00000	10	Im anderen EU-Staat steuerpflichtige Lieferung	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	380	I	\N	\N
\N	0.00000	11	Steuerfreie innergem. Lieferung an Abnehmer mit Id.-Nr.	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	381	I	\N	\N
62	0.07000	12	Steuerpflichtige EG-Lieferung zum ermäßigten Steuersatz	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	382	I	\N	\N
64	0.19000	13	Steuerpflichtige EG-Lieferung zum vollen Steuersatz	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	383	I	\N	\N
29	0.07000	18	Steuerpflichtiger innergem. Erwerb zum ermäßigten Steuersatz	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	385	E	\N	\N
31	0.19000	19	Steuerpflichtiger innergem. Erwerb zum vollen Steuersatz	2012-08-17 12:51:15.918799	2014-11-08 12:28:36.279816	387	E	\N	\N
33	0.19000	9	Vorsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	389	E	\N	183
28	0.07000	8	Vorsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	377	E	\N	181
32	0.16000	7	Vorsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	378	E	\N	182
61	0.07000	2	Umsatzsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	374	I	128	\N
66	0.19000	3	Umsatzsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	388	I	129	\N
65	0.16000	5	Umsatzsteuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	376	I	129	\N
\N	0.00000	0	Keine Steuer	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	0	ALQCIE	\N	\N
\N	0.00000	1	USt-frei	2012-08-17 12:51:15.918799	2015-12-14 07:39:57.640513	373	ALQCIE	\N	\N
63	0.05000	2	Umsatzsteuer	2020-07-04 11:03:04.786995	\N	1956	I	1954	\N
65	0.16000	3	Umsatzsteuer	2020-07-04 11:03:04.786995	\N	1957	I	129	\N
32	0.16000	9	Vorsteuer	2020-07-04 11:03:04.786995	\N	1958	E	\N	182
30	0.05000	8	Vorsteuer	2020-07-04 11:03:04.786995	\N	1959	E	\N	1955
\.


--
-- Data for Name: tax_zones; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.tax_zones (id, description, sortkey, obsolete) FROM stdin;
1	EU mit USt-ID Nummer	2	f
2	EU ohne USt-ID Nummer	3	f
3	Außerhalb EU	4	f
4	Inland	1	f
\.


--
-- Data for Name: taxkeys; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.taxkeys (id, chart_id, tax_id, taxkey_id, pos_ustva, startdate) FROM stdin;
390	1	389	9	\N	1970-01-01
392	2	389	9	\N	1970-01-01
394	3	389	9	\N	1970-01-01
396	4	389	9	\N	1970-01-01
398	5	389	9	\N	1970-01-01
400	6	389	9	\N	1970-01-01
402	7	389	9	\N	1970-01-01
404	8	389	9	\N	1970-01-01
406	9	389	9	\N	1970-01-01
408	10	389	9	\N	1970-01-01
410	11	389	9	\N	1970-01-01
412	12	389	9	\N	1970-01-01
414	13	389	9	\N	1970-01-01
416	14	389	9	\N	1970-01-01
418	15	389	9	\N	1970-01-01
420	16	389	9	\N	1970-01-01
472	67	380	10	\N	1970-01-01
487	84	374	2	86	1970-01-01
488	85	382	12	86	1970-01-01
489	86	383	13	51	1970-01-01
490	87	380	10	\N	1970-01-01
491	88	383	13	51	1970-01-01
492	89	376	5	51	1970-01-01
495	91	388	3	51	1970-01-01
498	93	374	2	86	1970-01-01
499	94	376	5	51	1970-01-01
500	95	388	3	51	1970-01-01
502	96	388	3	\N	1970-01-01
504	97	388	3	51	1970-01-01
512	104	374	2	86	1970-01-01
514	106	388	3	51	1970-01-01
516	107	374	2	86	1970-01-01
518	109	388	3	51	1970-01-01
522	112	388	3	51	1970-01-01
524	113	374	2	86	1970-01-01
526	115	388	3	51	1970-01-01
528	116	388	3	51	1970-01-01
534	121	374	2	86	1970-01-01
535	122	388	3	51	1970-01-01
537	123	376	5	51	1970-01-01
538	124	382	12	86	1970-01-01
539	125	383	13	51	1970-01-01
542	128	374	2	86	1970-01-01
543	129	376	5	51	1970-01-01
544	130	388	3	51	1970-01-01
546	131	374	2	86	1970-01-01
547	132	388	3	51	1970-01-01
549	133	376	5	51	1970-01-01
550	134	374	2	86	1970-01-01
551	135	388	3	51	1970-01-01
553	136	376	5	51	1970-01-01
558	141	388	3	51	1970-01-01
561	143	388	3	51	1970-01-01
567	148	388	3	51	1970-01-01
569	149	388	3	51	1970-01-01
580	159	374	2	86	1970-01-01
581	160	388	3	51	1970-01-01
588	166	389	9	0	1970-01-01
590	167	377	8	\N	1970-01-01
591	168	389	9	\N	1970-01-01
593	169	385	18	93	1970-01-01
595	171	387	19	94	1970-01-01
605	181	377	8	\N	1970-01-01
606	182	378	7	\N	1970-01-01
609	184	377	8	\N	1970-01-01
610	185	389	9	\N	1970-01-01
612	186	378	7	\N	1970-01-01
613	187	377	8	\N	1970-01-01
614	188	389	9	\N	1970-01-01
616	189	378	7	\N	1970-01-01
622	195	389	9	\N	1970-01-01
624	196	385	18	\N	1970-01-01
625	197	387	19	\N	1970-01-01
661	234	374	2	86	1970-01-01
662	235	376	5	51	1970-01-01
663	236	388	3	51	1970-01-01
665	237	388	3	51	1970-01-01
667	238	389	9	\N	1970-01-01
670	240	389	9	\N	1970-01-01
672	241	389	9	\N	1970-01-01
674	242	389	9	\N	1970-01-01
677	244	389	9	\N	1970-01-01
679	245	389	9	\N	1970-01-01
681	246	389	9	\N	1970-01-01
683	247	389	9	\N	1970-01-01
685	248	389	9	\N	1970-01-01
689	251	389	9	\N	1970-01-01
699	260	389	9	\N	1970-01-01
701	261	389	9	\N	1970-01-01
703	262	389	9	\N	1970-01-01
705	263	389	9	\N	1970-01-01
710	267	389	9	\N	1970-01-01
712	268	389	9	\N	1970-01-01
716	271	389	9	\N	1970-01-01
594	170	387	19	89	1970-01-01
607	183	389	9	\N	1970-01-01
721	275	389	9	\N	1970-01-01
725	278	389	9	\N	1970-01-01
727	279	389	9	\N	1970-01-01
729	280	389	9	\N	1970-01-01
731	281	389	9	\N	1970-01-01
734	283	389	9	\N	1970-01-01
736	284	389	9	\N	1970-01-01
738	285	377	8	\N	1970-01-01
742	289	389	9	\N	1970-01-01
744	290	377	8	\N	1970-01-01
757	303	389	9	\N	1970-01-01
759	304	389	9	\N	1970-01-01
761	305	389	9	\N	1970-01-01
763	306	377	8	\N	1970-01-01
764	307	389	9	\N	1970-01-01
767	309	389	9	\N	1970-01-01
769	310	389	9	\N	1970-01-01
771	311	389	9	\N	1970-01-01
773	312	389	9	\N	1970-01-01
775	313	389	9	\N	1970-01-01
777	314	389	9	\N	1970-01-01
779	315	389	9	\N	1970-01-01
782	317	389	9	\N	1970-01-01
857	91	388	3	51	2007-01-01
858	95	388	3	51	2007-01-01
859	96	388	3	\N	2007-01-01
860	97	388	3	51	2007-01-01
861	106	388	3	51	2007-01-01
862	109	388	3	51	2007-01-01
863	112	388	3	51	2007-01-01
864	115	388	3	51	2007-01-01
865	116	388	3	51	2007-01-01
866	122	388	3	51	2007-01-01
867	130	388	3	51	2007-01-01
868	132	388	3	51	2007-01-01
869	135	388	3	51	2007-01-01
870	141	388	3	51	2007-01-01
871	143	388	3	51	2007-01-01
872	148	388	3	51	2007-01-01
873	149	388	3	51	2007-01-01
874	160	388	3	51	2007-01-01
875	236	388	3	51	2007-01-01
876	237	388	3	51	2007-01-01
877	1	389	9	\N	2007-01-01
878	2	389	9	\N	2007-01-01
879	3	389	9	\N	2007-01-01
880	4	389	9	\N	2007-01-01
881	5	389	9	\N	2007-01-01
882	6	389	9	\N	2007-01-01
883	7	389	9	\N	2007-01-01
884	8	389	9	\N	2007-01-01
885	9	389	9	\N	2007-01-01
886	10	389	9	\N	2007-01-01
887	11	389	9	\N	2007-01-01
888	12	389	9	\N	2007-01-01
889	13	389	9	\N	2007-01-01
890	14	389	9	\N	2007-01-01
891	15	389	9	\N	2007-01-01
892	16	389	9	\N	2007-01-01
893	166	389	9	0	2007-01-01
894	168	389	9	\N	2007-01-01
896	185	389	9	\N	2007-01-01
897	188	389	9	\N	2007-01-01
898	195	389	9	\N	2007-01-01
899	238	389	9	\N	2007-01-01
900	240	389	9	\N	2007-01-01
901	241	389	9	\N	2007-01-01
902	242	389	9	\N	2007-01-01
903	244	389	9	\N	2007-01-01
904	245	389	9	\N	2007-01-01
905	246	389	9	\N	2007-01-01
906	247	389	9	\N	2007-01-01
907	248	389	9	\N	2007-01-01
908	251	389	9	\N	2007-01-01
909	260	389	9	\N	2007-01-01
910	261	389	9	\N	2007-01-01
911	262	389	9	\N	2007-01-01
912	263	389	9	\N	2007-01-01
913	267	389	9	\N	2007-01-01
914	268	389	9	\N	2007-01-01
915	271	389	9	\N	2007-01-01
916	275	389	9	\N	2007-01-01
917	278	389	9	\N	2007-01-01
918	279	389	9	\N	2007-01-01
919	280	389	9	\N	2007-01-01
920	281	389	9	\N	2007-01-01
921	283	389	9	\N	2007-01-01
922	284	389	9	\N	2007-01-01
923	289	389	9	\N	2007-01-01
924	303	389	9	\N	2007-01-01
925	304	389	9	\N	2007-01-01
926	305	389	9	\N	2007-01-01
927	307	389	9	\N	2007-01-01
928	309	389	9	\N	2007-01-01
929	310	389	9	\N	2007-01-01
930	311	389	9	\N	2007-01-01
931	312	389	9	\N	2007-01-01
932	313	389	9	\N	2007-01-01
933	314	389	9	\N	2007-01-01
934	315	389	9	\N	2007-01-01
935	317	389	9	\N	2007-01-01
423	18	0	0	\N	1970-01-01
424	19	0	0	\N	1970-01-01
425	20	0	0	\N	1970-01-01
426	21	0	0	\N	1970-01-01
427	22	0	0	\N	1970-01-01
428	23	0	0	\N	1970-01-01
429	24	0	0	\N	1970-01-01
430	25	0	0	\N	1970-01-01
431	26	0	0	\N	1970-01-01
432	27	0	0	\N	1970-01-01
433	28	0	0	66	1970-01-01
434	29	0	0	61	1970-01-01
435	30	0	0	61	1970-01-01
437	32	0	0	66	1970-01-01
438	33	0	0	66	1970-01-01
439	34	0	0	\N	1970-01-01
436	31	0	0	61	1970-01-01
440	35	0	0	\N	1970-01-01
442	37	0	0	\N	1970-01-01
443	38	0	0	62	1970-01-01
444	39	0	0	\N	1970-01-01
445	40	0	0	\N	1970-01-01
446	41	0	0	\N	1970-01-01
447	42	0	0	\N	1970-01-01
448	43	0	0	\N	1970-01-01
449	44	0	0	\N	1970-01-01
451	46	0	0	\N	1970-01-01
452	47	0	0	\N	1970-01-01
453	48	0	0	\N	1970-01-01
454	49	0	0	\N	1970-01-01
455	50	0	0	\N	1970-01-01
456	51	0	0	\N	1970-01-01
457	52	0	0	\N	1970-01-01
458	53	0	0	\N	1970-01-01
459	54	0	0	\N	1970-01-01
460	55	0	0	\N	1970-01-01
462	57	0	0	\N	1970-01-01
463	58	0	0	\N	1970-01-01
464	59	0	0	\N	1970-01-01
465	60	0	0	\N	1970-01-01
466	61	0	0	\N	1970-01-01
467	62	0	0	\N	1970-01-01
468	63	0	0	\N	1970-01-01
470	65	0	0	\N	1970-01-01
473	68	0	0	\N	1970-01-01
474	69	0	0	\N	1970-01-01
475	70	0	0	\N	1970-01-01
476	71	0	0	\N	1970-01-01
477	72	0	0	\N	1970-01-01
478	73	0	0	\N	1970-01-01
479	74	0	0	\N	1970-01-01
480	75	0	0	\N	1970-01-01
481	76	0	0	48	1970-01-01
482	77	0	0	41	1970-01-01
483	78	0	0	\N	1970-01-01
484	79	0	0	\N	1970-01-01
485	80	0	0	\N	1970-01-01
486	83	0	0	\N	1970-01-01
497	92	0	0	0	1970-01-01
506	98	0	0	0	1970-01-01
507	99	0	0	0	1970-01-01
508	100	0	0	0	1970-01-01
509	101	0	0	\N	1970-01-01
510	102	0	0	\N	1970-01-01
511	103	0	0	\N	1970-01-01
513	105	0	0	\N	1970-01-01
517	108	0	0	\N	1970-01-01
520	110	0	0	0	1970-01-01
521	111	0	0	0	1970-01-01
525	114	0	0	\N	1970-01-01
530	117	0	0	\N	1970-01-01
531	118	0	0	\N	1970-01-01
532	119	0	0	\N	1970-01-01
533	120	0	0	\N	1970-01-01
540	126	0	0	\N	1970-01-01
541	127	0	0	\N	1970-01-01
554	137	0	0	0	1970-01-01
555	138	0	0	0	1970-01-01
556	139	0	0	0	1970-01-01
557	140	0	0	0	1970-01-01
560	142	0	0	\N	1970-01-01
563	144	0	0	\N	1970-01-01
564	145	0	0	\N	1970-01-01
565	146	0	0	\N	1970-01-01
566	147	0	0	\N	1970-01-01
571	150	0	0	\N	1970-01-01
572	151	0	0	\N	1970-01-01
573	152	0	0	\N	1970-01-01
574	153	0	0	\N	1970-01-01
575	154	0	0	\N	1970-01-01
576	155	0	0	\N	1970-01-01
577	156	0	0	\N	1970-01-01
578	157	0	0	\N	1970-01-01
579	158	0	0	\N	1970-01-01
583	161	0	0	0	1970-01-01
584	162	0	0	\N	1970-01-01
585	163	0	0	\N	1970-01-01
586	164	0	0	\N	1970-01-01
587	165	0	0	\N	1970-01-01
596	172	0	0	91	1970-01-01
598	174	0	0	0	1970-01-01
599	175	0	0	0	1970-01-01
600	176	0	0	0	1970-01-01
601	177	0	0	\N	1970-01-01
602	178	0	0	\N	1970-01-01
603	179	0	0	\N	1970-01-01
604	180	0	0	\N	1970-01-01
617	190	0	0	\N	1970-01-01
618	191	0	0	\N	1970-01-01
619	192	0	0	\N	1970-01-01
620	193	0	0	\N	1970-01-01
621	194	0	0	\N	1970-01-01
626	198	0	0	\N	1970-01-01
628	200	0	0	\N	1970-01-01
629	201	0	0	\N	1970-01-01
630	202	0	0	\N	1970-01-01
631	203	0	0	\N	1970-01-01
632	204	0	0	\N	1970-01-01
633	205	0	0	\N	1970-01-01
634	206	0	0	\N	1970-01-01
635	207	0	0	\N	1970-01-01
636	208	0	0	\N	1970-01-01
637	209	0	0	\N	1970-01-01
638	210	0	0	\N	1970-01-01
639	211	0	0	0	1970-01-01
640	212	0	0	\N	1970-01-01
641	213	0	0	\N	1970-01-01
642	214	0	0	\N	1970-01-01
643	215	0	0	\N	1970-01-01
644	216	0	0	\N	1970-01-01
645	217	0	0	\N	1970-01-01
646	218	0	0	\N	1970-01-01
647	219	0	0	\N	1970-01-01
648	220	0	0	\N	1970-01-01
649	221	0	0	\N	1970-01-01
650	222	0	0	\N	1970-01-01
651	223	0	0	\N	1970-01-01
652	224	0	0	\N	1970-01-01
653	225	0	0	\N	1970-01-01
654	226	0	0	\N	1970-01-01
655	227	0	0	\N	1970-01-01
656	228	0	0	\N	1970-01-01
657	229	0	0	\N	1970-01-01
658	230	0	0	\N	1970-01-01
659	232	0	0	\N	1970-01-01
660	233	0	0	\N	1970-01-01
669	239	0	0	\N	1970-01-01
676	243	0	0	\N	1970-01-01
687	249	0	0	\N	1970-01-01
688	250	0	0	0	1970-01-01
691	252	0	0	\N	1970-01-01
692	253	0	0	\N	1970-01-01
693	254	0	0	\N	1970-01-01
694	255	0	0	\N	1970-01-01
695	256	0	0	\N	1970-01-01
696	257	0	0	\N	1970-01-01
697	258	0	0	\N	1970-01-01
698	259	0	0	\N	1970-01-01
707	264	0	0	\N	1970-01-01
708	265	0	0	\N	1970-01-01
709	266	0	0	\N	1970-01-01
714	269	0	0	\N	1970-01-01
715	270	0	0	\N	1970-01-01
718	272	0	0	0	1970-01-01
719	273	0	0	\N	1970-01-01
720	274	0	0	\N	1970-01-01
723	276	0	0	\N	1970-01-01
461	56	0	0	\N	1970-01-01
724	277	0	0	\N	1970-01-01
733	282	0	0	\N	1970-01-01
739	286	0	0	\N	1970-01-01
471	66	0	0	811	1970-01-01
740	287	0	0	\N	1970-01-01
741	288	0	0	\N	1970-01-01
745	291	0	0	\N	1970-01-01
746	292	0	0	\N	1970-01-01
747	293	0	0	\N	1970-01-01
748	294	0	0	\N	1970-01-01
749	295	0	0	\N	1970-01-01
750	296	0	0	\N	1970-01-01
751	297	0	0	\N	1970-01-01
752	298	0	0	\N	1970-01-01
753	299	0	0	\N	1970-01-01
754	300	0	0	\N	1970-01-01
755	301	0	0	\N	1970-01-01
756	302	0	0	\N	1970-01-01
766	308	0	0	\N	1970-01-01
781	316	0	0	\N	1970-01-01
784	318	0	0	\N	1970-01-01
785	319	0	0	\N	1970-01-01
786	320	0	0	\N	1970-01-01
787	321	0	0	\N	1970-01-01
788	322	0	0	\N	1970-01-01
789	323	0	0	\N	1970-01-01
790	324	0	0	\N	1970-01-01
791	325	0	0	\N	1970-01-01
792	326	0	0	\N	1970-01-01
793	327	0	0	\N	1970-01-01
794	328	0	0	\N	1970-01-01
795	329	0	0	\N	1970-01-01
796	330	0	0	\N	1970-01-01
797	331	0	0	\N	1970-01-01
798	332	0	0	\N	1970-01-01
799	333	0	0	\N	1970-01-01
800	334	0	0	\N	1970-01-01
801	335	0	0	\N	1970-01-01
802	336	0	0	\N	1970-01-01
803	337	0	0	\N	1970-01-01
804	338	0	0	\N	1970-01-01
805	339	0	0	\N	1970-01-01
806	340	0	0	\N	1970-01-01
807	341	0	0	\N	1970-01-01
808	342	0	0	\N	1970-01-01
809	343	0	0	\N	1970-01-01
810	344	0	0	\N	1970-01-01
811	345	0	0	\N	1970-01-01
812	346	0	0	\N	1970-01-01
813	347	0	0	\N	1970-01-01
814	348	0	0	\N	1970-01-01
815	349	0	0	\N	1970-01-01
816	350	0	0	\N	1970-01-01
817	351	0	0	\N	1970-01-01
818	352	0	0	\N	1970-01-01
819	353	0	0	\N	1970-01-01
820	354	0	0	\N	1970-01-01
821	355	0	0	\N	1970-01-01
822	356	0	0	\N	1970-01-01
823	357	0	0	\N	1970-01-01
824	358	0	0	\N	1970-01-01
825	359	0	0	\N	1970-01-01
826	360	0	0	\N	1970-01-01
827	361	0	0	\N	1970-01-01
828	362	0	0	\N	1970-01-01
829	363	0	0	\N	1970-01-01
830	364	0	0	\N	1970-01-01
831	365	0	0	\N	1970-01-01
832	366	0	0	\N	1970-01-01
833	367	0	0	\N	1970-01-01
834	368	0	0	\N	1970-01-01
835	369	0	0	\N	1970-01-01
836	370	0	0	\N	1970-01-01
837	371	0	0	\N	1970-01-01
939	81	0	0	0	1970-01-01
940	82	0	0	0	1970-01-01
941	231	0	0	0	1970-01-01
1218	1217	389	9	\N	2007-01-01
1219	1217	389	9	\N	1970-01-01
1227	1226	0	0	\N	1970-01-01
1229	1228	0	0	\N	1970-01-01
1235	1234	0	0	\N	1970-01-01
450	45	0	0	\N	1970-01-01
627	199	0	0	\N	1970-01-01
422	17	0	0	\N	1970-01-01
1665	1664	0	0	\N	1970-01-01
441	36	0	0	\N	1970-01-01
856	90	388	3	81	2007-01-01
895	183	389	9	\N	2007-01-01
597	173	0	0	\N	1970-01-01
469	64	0	0	891	1970-01-01
1910	1195	0	0	\N	1970-01-01
1911	1196	0	0	\N	1970-01-01
1912	1230	0	0	\N	1970-01-01
1913	1855	0	0	\N	1970-01-01
1906	66	0	0	811	2007-01-01
1908	61	0	0	861	2007-01-01
1909	64	0	0	891	2007-01-01
493	90	376	3	81	1970-01-01
1960	1954	1956	2	861	2020-07-01
1961	1955	1959	8	66	2020-07-01
1962	1	1958	9	\N	2020-07-01
1963	1	389	9	\N	2021-01-01
1964	2	1958	9	\N	2020-07-01
1965	2	389	9	\N	2021-01-01
1966	1217	1958	9	\N	2020-07-01
1967	1217	389	9	\N	2021-01-01
1968	3	1958	9	\N	2020-07-01
1969	3	389	9	\N	2021-01-01
1970	4	1958	9	\N	2020-07-01
1971	4	389	9	\N	2021-01-01
1972	5	1958	9	\N	2020-07-01
1973	5	389	9	\N	2021-01-01
1974	6	1958	9	\N	2020-07-01
1975	6	389	9	\N	2021-01-01
1976	7	1958	9	\N	2020-07-01
1977	7	389	9	\N	2021-01-01
1978	8	1958	9	\N	2020-07-01
1979	8	389	9	\N	2021-01-01
1980	9	1958	9	\N	2020-07-01
1981	9	389	9	\N	2021-01-01
1982	12	1958	9	\N	2020-07-01
1983	12	389	9	\N	2021-01-01
1984	11	1958	9	\N	2020-07-01
1985	11	389	9	\N	2021-01-01
1986	10	1958	9	\N	2020-07-01
1987	10	389	9	\N	2021-01-01
1988	13	1958	9	\N	2020-07-01
1989	13	389	9	\N	2021-01-01
1990	14	1958	9	\N	2020-07-01
1991	14	389	9	\N	2021-01-01
1992	15	1958	9	\N	2020-07-01
1993	15	389	9	\N	2021-01-01
1994	16	1958	9	\N	2020-07-01
1995	16	389	9	\N	2021-01-01
1996	84	1956	2	86	2020-07-01
1997	84	374	2	86	2021-01-01
1998	90	1957	3	81	2020-07-01
1999	90	388	3	81	2021-01-01
2000	91	1957	3	51	2020-07-01
2001	91	388	3	51	2021-01-01
2002	96	1957	3	\N	2020-07-01
2003	96	388	3	\N	2021-01-01
2004	97	1957	3	51	2020-07-01
2005	97	388	3	51	2021-01-01
2006	93	1956	2	86	2020-07-01
2007	93	374	2	86	2021-01-01
2008	95	1957	3	51	2020-07-01
2009	95	388	3	51	2021-01-01
2010	104	1956	2	86	2020-07-01
2011	104	374	2	86	2021-01-01
2012	106	1957	3	51	2020-07-01
2013	106	388	3	51	2021-01-01
2014	107	1956	2	86	2020-07-01
2015	107	374	2	86	2021-01-01
2016	109	1957	3	51	2020-07-01
2017	109	388	3	51	2021-01-01
2018	112	1957	3	51	2020-07-01
2019	112	388	3	51	2021-01-01
2020	113	1956	2	86	2020-07-01
2021	113	374	2	86	2021-01-01
2022	115	1957	3	51	2020-07-01
2023	115	388	3	51	2021-01-01
2024	116	1957	3	51	2020-07-01
2025	116	388	3	51	2021-01-01
2026	121	1956	2	86	2020-07-01
2027	121	374	2	86	2021-01-01
2028	122	1957	3	51	2020-07-01
2029	122	388	3	51	2021-01-01
2030	128	1956	2	86	2020-07-01
2031	128	374	2	86	2021-01-01
2032	130	1957	3	51	2020-07-01
2033	130	388	3	51	2021-01-01
2034	131	1956	2	86	2020-07-01
2035	131	374	2	86	2021-01-01
2036	132	1957	3	51	2020-07-01
2037	132	388	3	51	2021-01-01
2038	134	1956	2	86	2020-07-01
2039	134	374	2	86	2021-01-01
2040	135	1957	3	51	2020-07-01
2041	135	388	3	51	2021-01-01
2042	141	1957	3	51	2020-07-01
2043	141	388	3	51	2021-01-01
2044	143	1957	3	51	2020-07-01
2045	143	388	3	51	2021-01-01
2046	148	1957	3	51	2020-07-01
2047	148	388	3	51	2021-01-01
2048	149	1957	3	51	2020-07-01
2049	149	388	3	51	2021-01-01
2050	159	1956	2	86	2020-07-01
2051	159	374	2	86	2021-01-01
2052	160	1957	3	51	2020-07-01
2053	160	388	3	51	2021-01-01
2054	166	1958	9	0	2020-07-01
2055	166	389	9	0	2021-01-01
2056	167	1959	8	\N	2020-07-01
2057	167	377	8	\N	2021-01-01
2058	168	1958	9	\N	2020-07-01
2059	168	389	9	\N	2021-01-01
2060	181	1959	8	\N	2020-07-01
2061	181	377	8	\N	2021-01-01
2062	183	1958	9	\N	2020-07-01
2063	183	389	9	\N	2021-01-01
2064	184	1959	8	\N	2020-07-01
2065	184	377	8	\N	2021-01-01
2066	185	1958	9	\N	2020-07-01
2067	185	389	9	\N	2021-01-01
2068	187	1959	8	\N	2020-07-01
2069	187	377	8	\N	2021-01-01
2070	188	1958	9	\N	2020-07-01
2071	188	389	9	\N	2021-01-01
2072	195	1958	9	\N	2020-07-01
2073	195	389	9	\N	2021-01-01
2074	234	1956	2	86	2020-07-01
2075	234	374	2	86	2021-01-01
2076	236	1957	3	51	2020-07-01
2077	236	388	3	51	2021-01-01
2078	237	1957	3	51	2020-07-01
2079	237	388	3	51	2021-01-01
2080	238	1958	9	\N	2020-07-01
2081	238	389	9	\N	2021-01-01
2082	240	1958	9	\N	2020-07-01
2083	240	389	9	\N	2021-01-01
2084	241	1958	9	\N	2020-07-01
2085	241	389	9	\N	2021-01-01
2086	242	1958	9	\N	2020-07-01
2087	242	389	9	\N	2021-01-01
2088	244	1958	9	\N	2020-07-01
2089	244	389	9	\N	2021-01-01
2090	245	1958	9	\N	2020-07-01
2091	245	389	9	\N	2021-01-01
2092	246	1958	9	\N	2020-07-01
2093	246	389	9	\N	2021-01-01
2094	247	1958	9	\N	2020-07-01
2095	247	389	9	\N	2021-01-01
2096	248	1958	9	\N	2020-07-01
2097	248	389	9	\N	2021-01-01
2098	251	1958	9	\N	2020-07-01
2099	251	389	9	\N	2021-01-01
2100	260	1958	9	\N	2020-07-01
2101	260	389	9	\N	2021-01-01
2102	261	1958	9	\N	2020-07-01
2103	261	389	9	\N	2021-01-01
2104	263	1958	9	\N	2020-07-01
2105	263	389	9	\N	2021-01-01
2106	262	1958	9	\N	2020-07-01
2107	262	389	9	\N	2021-01-01
2108	267	1958	9	\N	2020-07-01
2109	267	389	9	\N	2021-01-01
2110	268	1958	9	\N	2020-07-01
2111	268	389	9	\N	2021-01-01
2112	271	1958	9	\N	2020-07-01
2113	271	389	9	\N	2021-01-01
2114	275	1958	9	\N	2020-07-01
2115	275	389	9	\N	2021-01-01
2116	278	1958	9	\N	2020-07-01
2117	278	389	9	\N	2021-01-01
2118	279	1958	9	\N	2020-07-01
2119	279	389	9	\N	2021-01-01
2120	280	1958	9	\N	2020-07-01
2121	280	389	9	\N	2021-01-01
2122	281	1958	9	\N	2020-07-01
2123	281	389	9	\N	2021-01-01
2124	283	1958	9	\N	2020-07-01
2125	283	389	9	\N	2021-01-01
2126	284	1958	9	\N	2020-07-01
2127	284	389	9	\N	2021-01-01
2128	285	1959	8	\N	2020-07-01
2129	285	377	8	\N	2021-01-01
2130	289	1958	9	\N	2020-07-01
2131	289	389	9	\N	2021-01-01
2132	290	1959	8	\N	2020-07-01
2133	290	377	8	\N	2021-01-01
2134	303	1958	9	\N	2020-07-01
2135	303	389	9	\N	2021-01-01
2136	304	1958	9	\N	2020-07-01
2137	304	389	9	\N	2021-01-01
2138	305	1958	9	\N	2020-07-01
2139	305	389	9	\N	2021-01-01
2140	306	1959	8	\N	2020-07-01
2141	306	377	8	\N	2021-01-01
2142	307	1958	9	\N	2020-07-01
2143	307	389	9	\N	2021-01-01
2144	309	1958	9	\N	2020-07-01
2145	309	389	9	\N	2021-01-01
2146	310	1958	9	\N	2020-07-01
2147	310	389	9	\N	2021-01-01
2148	311	1958	9	\N	2020-07-01
2149	311	389	9	\N	2021-01-01
2150	312	1958	9	\N	2020-07-01
2151	312	389	9	\N	2021-01-01
2152	313	1958	9	\N	2020-07-01
2153	313	389	9	\N	2021-01-01
2154	314	1958	9	\N	2020-07-01
2155	314	389	9	\N	2021-01-01
2156	315	1958	9	\N	2020-07-01
2157	315	389	9	\N	2021-01-01
2158	317	1958	9	\N	2020-07-01
2159	317	389	9	\N	2021-01-01
\.


--
-- Data for Name: taxzone_charts; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.taxzone_charts (id, taxzone_id, buchungsgruppen_id, income_accno_id, expense_accno_id, itime) FROM stdin;
3	1	936	77	172	2015-02-01 20:53:53.159827
4	1	937	77	172	2015-02-01 20:53:53.159827
5	2	936	86	170	2015-02-01 20:53:53.159827
6	2	937	85	169	2015-02-01 20:53:53.159827
7	3	936	80	173	2015-02-01 20:53:53.159827
8	3	937	80	173	2015-02-01 20:53:53.159827
1	4	936	90	168	2015-02-01 20:53:53.159827
2	4	937	84	167	2015-02-01 20:53:53.159827
\.


--
-- Data for Name: todo_user_config; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.todo_user_config (employee_id, show_after_login, show_follow_ups, show_follow_ups_login, show_overdue_sales_quotations, show_overdue_sales_quotations_login, id) FROM stdin;
938	t	t	t	t	t	1
1473	t	t	t	t	t	2
1871	t	t	t	t	t	3
\.


--
-- Data for Name: transfer_type; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.transfer_type (id, direction, description, sortkey, itime, mtime) FROM stdin;
945	in	stock	1	2012-08-17 12:52:17.421306	\N
946	in	found	2	2012-08-17 12:52:17.421306	\N
947	in	correction	3	2012-08-17 12:52:17.421306	\N
948	out	used	4	2012-08-17 12:52:17.421306	\N
949	out	disposed	5	2012-08-17 12:52:17.421306	\N
950	out	back	6	2012-08-17 12:52:17.421306	\N
951	out	missing	7	2012-08-17 12:52:17.421306	\N
952	out	correction	9	2012-08-17 12:52:17.421306	\N
953	transfer	transfer	10	2012-08-17 12:52:17.421306	\N
954	transfer	correction	11	2012-08-17 12:52:17.421306	\N
955	out	shipped	12	2012-08-17 12:52:18.686577	\N
1942	in	assembled	13	2016-08-10 11:18:39.644683	\N
1950	in	stocktaking	14	2019-01-03 12:09:48.684302	\N
1951	out	stocktaking	15	2019-01-03 12:09:48.684302	\N
\.


--
-- Data for Name: translation; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.translation (parts_id, language_id, translation, itime, mtime, longdescription, id) FROM stdin;
\.


--
-- Data for Name: units; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.units (name, base_unit, factor, type, sortkey, id) FROM stdin;
Std	min	60.00000	service	4	4
min	\N	0.00000	service	5	5
kg	g	1000.00000	dimension	7	7
g	mg	1000.00000	dimension	8	8
mg	\N	\N	dimension	9	9
ml	\N	\N	dimension	11	11
m	\N	\N	\N	12	12
psch	\N	\N	service	2	2
Stck	\N	\N	dimension	1	1
km	m	1000.00000	\N	13	13
Tag	Std	8.00000	service	3	3
t	kg	1000.00000	dimension	6	6
m²	\N	\N	\N	14	14
L	ml	1000.00000	dimension	10	10
Monat	Tag	30.00000	\N	15	15
\.


--
-- Data for Name: units_language; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.units_language (unit, language_id, localized, localized_plural, id) FROM stdin;
\.


--
-- Data for Name: warehouse; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.warehouse (id, description, itime, mtime, sortkey, invalid) FROM stdin;
956	Stahllager Industriepark Gallin	2012-08-17 12:54:39.431761	2012-08-17 12:54:39.431761	1	f
958	Motorenlager Megapark Heisterbusch	2012-08-17 12:55:17.503286	2012-08-17 12:55:17.503286	2	f
969	Lagerhalle Fertigung	2012-08-17 12:55:48.385448	2012-08-17 12:55:48.385448	3	f
\.


--
-- Data for Name: report_categories; Type: TABLE DATA; Schema: tax; Owner: postgres
--

COPY tax.report_categories (id, description, subdescription) FROM stdin;
0		
1	Lieferungen und sonstige Leistungen	(einschließlich unentgeltlicher Wertabgaben)
2	Innergemeinschaftliche Erwerbe	
3	Ergänzende Angaben zu Umsätzen	
99	Summe	
\.


--
-- Data for Name: report_headings; Type: TABLE DATA; Schema: tax; Owner: postgres
--

COPY tax.report_headings (id, category_id, type, description, subdescription) FROM stdin;
0	0			
1	1	received	Steuerfreie Umsätze mit Vorsteuerabzug	
2	1	recieved	Steuerfreie Umsätze ohne Vorsteuerabzug	
3	1	recieved	Steuerpflichtige Umsätze	(Lieferungen und sonstige Leistungen einschl. unentgeltlicher Wertabgaben)
4	2	recieved	Steuerfreie innergemeinschaftliche Erwerbe	
5	2	recieved	Steuerpflichtige innergemeinschaftliche Erwerbe	
6	3	recieved	Umsätze, für die als Leistungsempfänger die Steuer nach § 13b Abs. 2 UStG geschuldet wird	
66	3	recieved		
7	3	paied	Abziehbare Vorsteuerbeträge	
8	3	paied	Andere Steuerbeträge	
99	99		Summe	
\.


--
-- Data for Name: report_variables; Type: TABLE DATA; Schema: tax; Owner: postgres
--

COPY tax.report_variables (id, "position", heading_id, description, taxbase, dec_places, valid_from) FROM stdin;
0	keine	0	< < < keine UStVa Position > > >			1970-01-01
1	41	1	Innergemeinschaftliche Lieferungen (§ 4 Nr. 1 Buchst. b UStG) an Abnehmer mit USt-IdNr.	0	0	1970-01-01
2	44	1	neuer Fahrzeuge an Abnehmer ohne USt-IdNr.	0	0	1970-01-01
3	49	1	neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG)	0	0	1970-01-01
4	43	1	Weitere steuerfreie Umsätze mit Vorsteuerabzug	0	0	1970-01-01
5	48	2	Umsätze nach § 4 Nr. 8 bis 28 UStG	0	0	1970-01-01
6	51	3	zum Steuersatz von 16 %	0	0	1970-01-01
7	511	3		6	2	1970-01-01
8	81	3	zum Steuersatz von 19 %	0	0	1970-01-01
9	811	3		8	2	1970-01-01
10	86	3	zum Steuersatz von 7 %	0	0	1970-01-01
11	861	3		10	2	1970-01-01
12	35	3	Umsätze, die anderen Steuersätzen unterliegen	0	0	1970-01-01
13	36	3		12	2	1970-01-01
14	77	3	Lieferungen in das übrige Gemeinschaftsgebiet an Abnehmer mit USt-IdNr.	0	0	1970-01-01
15	76	3	Umsätze, für die eine Steuer nach § 24 UStG zu entrichten ist	0	0	1970-01-01
16	80	3		15	2	1970-01-01
17	91	4	Erwerbe nach § 4b UStG	0	0	1970-01-01
18	97	5	zum Steuersatz von 16 %	0	0	1970-01-01
19	971	5		18	2	1970-01-01
20	89	5	zum Steuersatz von 19 %	0	0	1970-01-01
21	891	5		20	2	1970-01-01
22	93	5	zum Steuersatz von 7 %	0	0	1970-01-01
23	931	5		22	2	1970-01-01
24	95	5	zu anderen Steuersätzen	0	0	1970-01-01
25	98	5		24	2	1970-01-01
26	94	5	neuer Fahrzeuge von Lieferern ohne USt-IdNr. zum allgemeinen Steuersatz	0	0	1970-01-01
27	96	5		26	2	1970-01-01
28	42	66	Lieferungen des ersten Abnehmers bei innergemeinschaftlichen Dreiecksgeschäften (§ 25b Abs. 2 UStG)	0	0	1970-01-01
29	60	66	Steuerpflichtige Umsätze im Sinne des § 13b Abs. 1 Satz 1 Nr. 1 bis 5 UStG, für die der Leistungsempfänger die Steuer schuldet	0	0	1970-01-01
30	45	66	Nicht steuerbare Umsätze (Leistungsort nicht im Inland)	0	0	1970-01-01
31	52	6	Leistungen eines im Ausland ansässigen Unternehmers (§ 13b Abs. 1 Satz 1 Nr. 1 und 5 UStG)	0	0	1970-01-01
32	53	6		31	2	1970-01-01
33	73	6	Lieferungen sicherungsübereigneter Gegenstände und Umsätze, die unter das GrEStG fallen (§ 13b Abs. 1 Satz 1 Nr. 2 und 3 UStG)	0	0	1970-01-01
34	74	6		33	2	1970-01-01
35	84	6	Bauleistungen eines im Inland ansässigen Unternehmers (§ 13b Abs. 1 Satz 1 Nr. 4 UStG)	0	0	1970-01-01
36	85	6		35	2	1970-01-01
37	65	6	Steuer infolge Wechsels der Besteuerungsform sowie Nachsteuer auf versteuerte Anzahlungen u. ä. wegen Steuersatzänderung		2	1970-01-01
38	66	7	Vorsteuerbeträge aus Rechnungen von anderen Unternehmern (§ 15 Abs. 1 Satz 1 Nr. 1 UStG), aus Leistungen im Sinne des § 13a Abs. 1 Nr. 6 UStG (§ 15 Abs. 1 Satz 1 Nr. 5 UStG) und aus innergemeinschaftlichen Dreiecksgeschäften (§ 25b Abs. 5 UStG)		2	1970-01-01
39	61	7	Vorsteuerbeträge aus dem innergemeinschaftlichen Erwerb von Gegenständen (§ 15 Abs. 1 Satz 1 Nr. 3 UStG)		2	1970-01-01
40	62	7	Entrichtete Einfuhrumsatzsteuer (§ 15 Abs. 1 Satz 1 Nr. 2 UStG)		2	1970-01-01
41	67	7	Vorsteuerbeträge aus Leistungen im Sinne des § 13b Abs. 1 UStG (§ 15 Abs. 1 Satz 1 Nr. 4 UStG)		2	1970-01-01
42	63	7	Vorsteuerbeträge, die nach allgemeinen Durchschnittssätzen berechnet sind (§§ 23 und 23a UStG)		2	1970-01-01
43	64	7	Berichtigung des Vorsteuerabzugs (§ 15a UStG)		2	1970-01-01
44	59	7	Vorsteuerabzug für innergemeinschaftliche Lieferungen neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) sowie von Kleinunternehmern im Sinne des § 19 Abs. 1 UStG (§ 15 Abs. 4a UStG)		2	1970-01-01
45	69	8	in Rechnungen unrichtig oder unberechtigt ausgewiesene Steuerbeträge (§ 14c UStG) sowie Steuerbeträge, die nach § 4 Nr. 4a Satz 1 Buchst. a Satz 2, § 6a Abs. 4 Satz 2, § 17 Abs. 1 Satz 6 oder § 25b Abs. 2 UStG geschuldet werden		2	1970-01-01
46	39	8	Anrechnung (Abzug) der festgesetzten Sondervorauszahlung für Dauerfristverlängerung (nur auszufüllen in der letzten Voranmeldung des Besteuerungszeitraums, in der Regel Dezember)		2	1970-01-01
47	21	66	Nicht steuerbare sonstige Leistungen gem. § 18b Satz 1 Nr. 2 UStG	0	0	2010-01-01
48	46	6	Im Inland steuerpflichtige sonstige Leistungen von im übrigen Gemeinschaftsgebiet ansässigen Unternehmen (§13b Abs. 1 UStG)	0	0	2010-01-01
49	47	6		49	2	2010-01-01
50	83	8	Verbleibender Überschuss - bitte dem Betrag ein Minuszeichen voranstellen -	0	2	2010-01-01
\.



--
-- Name: acc_trans acc_trans_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_trans
    ADD CONSTRAINT acc_trans_pkey PRIMARY KEY (acc_trans_id);


--
-- Name: ap ap_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_pkey PRIMARY KEY (id);


--
-- Name: ar ar_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_pkey PRIMARY KEY (id);


--
-- Name: assembly assembly_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly
    ADD CONSTRAINT assembly_pkey PRIMARY KEY (assembly_id);


--
-- Name: assortment_items assortment_part_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assortment_items
    ADD CONSTRAINT assortment_part_pkey PRIMARY KEY (assortment_id, parts_id);


--
-- Name: background_job_histories background_job_histories_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.background_job_histories
    ADD CONSTRAINT background_job_histories_pkey PRIMARY KEY (id);


--
-- Name: background_jobs background_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.background_jobs
    ADD CONSTRAINT background_jobs_pkey PRIMARY KEY (id);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_pkey PRIMARY KEY (bank_transaction_id, acc_trans_id);


--
-- Name: bank_transactions bank_transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transactions
    ADD CONSTRAINT bank_transactions_pkey PRIMARY KEY (id);


--
-- Name: bin bin_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bin
    ADD CONSTRAINT bin_pkey PRIMARY KEY (id);


--
-- Name: buchungsgruppen buchungsgruppen_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.buchungsgruppen
    ADD CONSTRAINT buchungsgruppen_pkey PRIMARY KEY (id);


--
-- Name: business business_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business
    ADD CONSTRAINT business_pkey PRIMARY KEY (id);


--
-- Name: chart chart_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.chart
    ADD CONSTRAINT chart_pkey PRIMARY KEY (id);


--
-- Name: contact_departments contact_departments_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_departments
    ADD CONSTRAINT contact_departments_description_key UNIQUE (description);


--
-- Name: contact_departments contact_departments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_departments
    ADD CONSTRAINT contact_departments_pkey PRIMARY KEY (id);


--
-- Name: contact_titles contact_titles_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_titles
    ADD CONSTRAINT contact_titles_description_key UNIQUE (description);


--
-- Name: contact_titles contact_titles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_titles
    ADD CONSTRAINT contact_titles_pkey PRIMARY KEY (id);


--
-- Name: contacts contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacts
    ADD CONSTRAINT contacts_pkey PRIMARY KEY (cp_id);


--
-- Name: csv_import_profiles csv_import_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_profiles
    ADD CONSTRAINT csv_import_profiles_pkey PRIMARY KEY (id);


--
-- Name: csv_import_report_rows csv_import_report_rows_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_rows
    ADD CONSTRAINT csv_import_report_rows_pkey PRIMARY KEY (id);


--
-- Name: csv_import_report_status csv_import_report_status_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_status
    ADD CONSTRAINT csv_import_report_status_pkey PRIMARY KEY (id);


--
-- Name: currencies currencies_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.currencies
    ADD CONSTRAINT currencies_name_key UNIQUE (name);


--
-- Name: currencies currencies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.currencies
    ADD CONSTRAINT currencies_pkey PRIMARY KEY (id);


--
-- Name: custom_data_export_queries custom_data_export_queries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_data_export_queries
    ADD CONSTRAINT custom_data_export_queries_pkey PRIMARY KEY (id);


--
-- Name: custom_data_export_query_parameters custom_data_export_query_parameters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_data_export_query_parameters
    ADD CONSTRAINT custom_data_export_query_parameters_pkey PRIMARY KEY (id);


--
-- Name: custom_variable_config_partsgroups custom_variable_config_partsgroups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variable_config_partsgroups
    ADD CONSTRAINT custom_variable_config_partsgroups_pkey PRIMARY KEY (custom_variable_config_id, partsgroup_id);


--
-- Name: custom_variable_configs custom_variable_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variable_configs
    ADD CONSTRAINT custom_variable_configs_pkey PRIMARY KEY (id);


--
-- Name: custom_variables custom_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variables
    ADD CONSTRAINT custom_variables_pkey PRIMARY KEY (id);


--
-- Name: custom_variables_validity custom_variables_validity_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variables_validity
    ADD CONSTRAINT custom_variables_validity_pkey PRIMARY KEY (id);


--
-- Name: datev datev_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.datev
    ADD CONSTRAINT datev_pkey PRIMARY KEY (id);


--
-- Name: defaults defaults_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_pkey PRIMARY KEY (id);


--
-- Name: delivery_order_items delivery_order_items_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_pkey PRIMARY KEY (id);


--
-- Name: delivery_order_items_stock delivery_order_items_stock_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items_stock
    ADD CONSTRAINT delivery_order_items_stock_pkey PRIMARY KEY (id);


--
-- Name: delivery_orders delivery_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_pkey PRIMARY KEY (id);


--
-- Name: delivery_terms delivery_terms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_terms
    ADD CONSTRAINT delivery_terms_pkey PRIMARY KEY (id);


--
-- Name: department department_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.department
    ADD CONSTRAINT department_pkey PRIMARY KEY (id);


--
-- Name: drafts drafts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.drafts
    ADD CONSTRAINT drafts_pkey PRIMARY KEY (id);


--
-- Name: dunning_config dunning_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dunning_config
    ADD CONSTRAINT dunning_config_pkey PRIMARY KEY (id);


--
-- Name: dunning dunning_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dunning
    ADD CONSTRAINT dunning_pkey PRIMARY KEY (id);


--
-- Name: email_journal_attachments email_journal_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal_attachments
    ADD CONSTRAINT email_journal_attachments_pkey PRIMARY KEY (id);


--
-- Name: email_journal email_journal_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal
    ADD CONSTRAINT email_journal_pkey PRIMARY KEY (id);


--
-- Name: employee employee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employee
    ADD CONSTRAINT employee_pkey PRIMARY KEY (id);


--
-- Name: employee_project_invoices employee_project_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employee_project_invoices
    ADD CONSTRAINT employee_project_invoices_pkey PRIMARY KEY (employee_id, project_id);


--
-- Name: exchangerate exchangerate_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchangerate
    ADD CONSTRAINT exchangerate_pkey PRIMARY KEY (id);


--
-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.files
    ADD CONSTRAINT files_pkey PRIMARY KEY (id);


--
-- Name: finanzamt finanzamt_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.finanzamt
    ADD CONSTRAINT finanzamt_pkey PRIMARY KEY (id);


--
-- Name: follow_up_access follow_up_access_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_access
    ADD CONSTRAINT follow_up_access_pkey PRIMARY KEY (id);


--
-- Name: follow_up_links follow_up_links_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_links
    ADD CONSTRAINT follow_up_links_pkey PRIMARY KEY (id);


--
-- Name: follow_ups follow_ups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_ups
    ADD CONSTRAINT follow_ups_pkey PRIMARY KEY (id);


--
-- Name: generic_translations generic_translations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.generic_translations
    ADD CONSTRAINT generic_translations_pkey PRIMARY KEY (id);


--
-- Name: gl gl_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gl
    ADD CONSTRAINT gl_pkey PRIMARY KEY (id);


--
-- Name: greetings greetings_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.greetings
    ADD CONSTRAINT greetings_description_key UNIQUE (description);


--
-- Name: greetings greetings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.greetings
    ADD CONSTRAINT greetings_pkey PRIMARY KEY (id);


--
-- Name: history_erp history_erp_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.history_erp
    ADD CONSTRAINT history_erp_pkey PRIMARY KEY (id);


--
-- Name: inventory inventory_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_pkey PRIMARY KEY (id);


--
-- Name: invoice invoice_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT invoice_pkey PRIMARY KEY (id);


--
-- Name: language language_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.language
    ADD CONSTRAINT language_pkey PRIMARY KEY (id);


--
-- Name: letter_draft letter_draft_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_pkey PRIMARY KEY (id);


--
-- Name: letter letter_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_pkey PRIMARY KEY (id);


--
-- Name: makemodel makemodel_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.makemodel
    ADD CONSTRAINT makemodel_pkey PRIMARY KEY (id);


--
-- Name: notes notes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notes
    ADD CONSTRAINT notes_pkey PRIMARY KEY (id);


--
-- Name: oe oe_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_pkey PRIMARY KEY (id);


--
-- Name: orderitems orderitems_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_pkey PRIMARY KEY (id);


--
-- Name: part_classifications part_classifications_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_classifications
    ADD CONSTRAINT part_classifications_pkey PRIMARY KEY (id);


--
-- Name: part_customer_prices part_customer_prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_customer_prices
    ADD CONSTRAINT part_customer_prices_pkey PRIMARY KEY (id);


--
-- Name: prices parts_id_pricegroup_id_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.prices
    ADD CONSTRAINT parts_id_pricegroup_id_unique UNIQUE (parts_id, pricegroup_id);


--
-- Name: parts parts_partnumber_key1; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_partnumber_key1 UNIQUE (partnumber);


--
-- Name: parts parts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_pkey PRIMARY KEY (id);


--
-- Name: parts_price_history parts_price_history_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts_price_history
    ADD CONSTRAINT parts_price_history_pkey PRIMARY KEY (id);


--
-- Name: partsgroup partsgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.partsgroup
    ADD CONSTRAINT partsgroup_pkey PRIMARY KEY (id);


--
-- Name: payment_terms payment_terms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.payment_terms
    ADD CONSTRAINT payment_terms_pkey PRIMARY KEY (id);


--
-- Name: periodic_invoices_configs periodic_invoices_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices_configs
    ADD CONSTRAINT periodic_invoices_configs_pkey PRIMARY KEY (id);


--
-- Name: periodic_invoices periodic_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices
    ADD CONSTRAINT periodic_invoices_pkey PRIMARY KEY (id);


--
-- Name: price_factors price_factors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_factors
    ADD CONSTRAINT price_factors_pkey PRIMARY KEY (id);


--
-- Name: price_rule_items price_rule_items_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rule_items
    ADD CONSTRAINT price_rule_items_pkey PRIMARY KEY (id);


--
-- Name: price_rules price_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rules
    ADD CONSTRAINT price_rules_pkey PRIMARY KEY (id);


--
-- Name: pricegroup pricegroup_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.pricegroup
    ADD CONSTRAINT pricegroup_pkey PRIMARY KEY (id);


--
-- Name: prices prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.prices
    ADD CONSTRAINT prices_pkey PRIMARY KEY (id);


--
-- Name: printers printers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printers
    ADD CONSTRAINT printers_pkey PRIMARY KEY (id);


--
-- Name: project_participants project_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_participants
    ADD CONSTRAINT project_participants_pkey PRIMARY KEY (id);


--
-- Name: project_phase_participants project_phase_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phase_participants
    ADD CONSTRAINT project_phase_participants_pkey PRIMARY KEY (id);


--
-- Name: project_phases project_phases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phases
    ADD CONSTRAINT project_phases_pkey PRIMARY KEY (id);


--
-- Name: project project_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_pkey PRIMARY KEY (id);


--
-- Name: project project_projectnumber_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_projectnumber_key UNIQUE (projectnumber);


--
-- Name: project_roles project_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_roles
    ADD CONSTRAINT project_roles_pkey PRIMARY KEY (id);


--
-- Name: project_statuses project_status_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_statuses
    ADD CONSTRAINT project_status_pkey PRIMARY KEY (id);


--
-- Name: project_types project_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_types
    ADD CONSTRAINT project_types_pkey PRIMARY KEY (id);


--
-- Name: reconciliation_links reconciliation_links_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reconciliation_links
    ADD CONSTRAINT reconciliation_links_pkey PRIMARY KEY (id);


--
-- Name: record_links record_links_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_links
    ADD CONSTRAINT record_links_pkey PRIMARY KEY (id);


--
-- Name: record_template_items record_template_items_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items
    ADD CONSTRAINT record_template_items_pkey PRIMARY KEY (id);


--
-- Name: record_templates record_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_acceptance_statuses requirement_spec_acceptance_statuses_name_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_acceptance_statuses
    ADD CONSTRAINT requirement_spec_acceptance_statuses_name_description_key UNIQUE (name, description);


--
-- Name: requirement_spec_acceptance_statuses requirement_spec_acceptance_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_acceptance_statuses
    ADD CONSTRAINT requirement_spec_acceptance_statuses_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_complexities requirement_spec_complexities_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_complexities
    ADD CONSTRAINT requirement_spec_complexities_description_key UNIQUE (description);


--
-- Name: requirement_spec_complexities requirement_spec_complexities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_complexities
    ADD CONSTRAINT requirement_spec_complexities_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_orders requirement_spec_id_order_id_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders
    ADD CONSTRAINT requirement_spec_id_order_id_unique UNIQUE (requirement_spec_id, order_id);


--
-- Name: requirement_spec_item_dependencies requirement_spec_item_dependencies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_item_dependencies
    ADD CONSTRAINT requirement_spec_item_dependencies_pkey PRIMARY KEY (depending_item_id, depended_item_id);


--
-- Name: requirement_spec_items requirement_spec_items_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_orders requirement_spec_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders
    ADD CONSTRAINT requirement_spec_orders_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_parts requirement_spec_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_parts
    ADD CONSTRAINT requirement_spec_parts_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_pictures requirement_spec_pictures_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_pictures
    ADD CONSTRAINT requirement_spec_pictures_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_predefined_texts requirement_spec_predefined_texts_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_predefined_texts
    ADD CONSTRAINT requirement_spec_predefined_texts_description_key UNIQUE (description);


--
-- Name: requirement_spec_predefined_texts requirement_spec_predefined_texts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_predefined_texts
    ADD CONSTRAINT requirement_spec_predefined_texts_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_risks requirement_spec_risks_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_risks
    ADD CONSTRAINT requirement_spec_risks_description_key UNIQUE (description);


--
-- Name: requirement_spec_risks requirement_spec_risks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_risks
    ADD CONSTRAINT requirement_spec_risks_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_statuses requirement_spec_statuses_name_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_statuses
    ADD CONSTRAINT requirement_spec_statuses_name_description_key UNIQUE (name, description);


--
-- Name: requirement_spec_statuses requirement_spec_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_statuses
    ADD CONSTRAINT requirement_spec_statuses_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_text_blocks requirement_spec_text_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_text_blocks
    ADD CONSTRAINT requirement_spec_text_blocks_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_types requirement_spec_types_description_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_types
    ADD CONSTRAINT requirement_spec_types_description_key UNIQUE (description);


--
-- Name: requirement_spec_types requirement_spec_types_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_types
    ADD CONSTRAINT requirement_spec_types_pkey PRIMARY KEY (id);


--
-- Name: requirement_spec_versions requirement_spec_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_versions
    ADD CONSTRAINT requirement_spec_versions_pkey PRIMARY KEY (id);


--
-- Name: requirement_specs requirement_specs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_pkey PRIMARY KEY (id);


--
-- Name: schema_info schema_info_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.schema_info
    ADD CONSTRAINT schema_info_pkey PRIMARY KEY (tag);


--
-- Name: sepa_export_message_ids sepa_export_message_ids_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sepa_export_message_ids
    ADD CONSTRAINT sepa_export_message_ids_pkey PRIMARY KEY (id);


--
-- Name: sepa_export sepa_export_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sepa_export
    ADD CONSTRAINT sepa_export_pkey PRIMARY KEY (id);


--
-- Name: shipto shipto_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shipto
    ADD CONSTRAINT shipto_pkey PRIMARY KEY (shipto_id);


--
-- Name: shop_images shop_images_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_images
    ADD CONSTRAINT shop_images_pkey PRIMARY KEY (id);


--
-- Name: shop_order_items shop_order_items_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_order_items
    ADD CONSTRAINT shop_order_items_pkey PRIMARY KEY (id);


--
-- Name: shop_parts shop_parts_part_id_shop_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_parts
    ADD CONSTRAINT shop_parts_part_id_shop_id_key UNIQUE (part_id, shop_id);


--
-- Name: shop_parts shop_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_parts
    ADD CONSTRAINT shop_parts_pkey PRIMARY KEY (id);


--
-- Name: status status_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.status
    ADD CONSTRAINT status_pkey PRIMARY KEY (id);


--
-- Name: stocktakings stocktakings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_pkey PRIMARY KEY (id);


--
-- Name: tax tax_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tax
    ADD CONSTRAINT tax_pkey PRIMARY KEY (id);


--
-- Name: tax_zones tax_zones_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tax_zones
    ADD CONSTRAINT tax_zones_pkey PRIMARY KEY (id);


--
-- Name: taxkeys taxkeys_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxkeys
    ADD CONSTRAINT taxkeys_pkey PRIMARY KEY (id);


--
-- Name: taxzone_charts taxzone_charts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts
    ADD CONSTRAINT taxzone_charts_pkey PRIMARY KEY (id);


--
-- Name: todo_user_config todo_user_config_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.todo_user_config
    ADD CONSTRAINT todo_user_config_pkey PRIMARY KEY (id);


--
-- Name: transfer_type transfer_type_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.transfer_type
    ADD CONSTRAINT transfer_type_pkey PRIMARY KEY (id);


--
-- Name: translation translation_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translation
    ADD CONSTRAINT translation_pkey PRIMARY KEY (id);


--
-- Name: units units_id_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units
    ADD CONSTRAINT units_id_unique UNIQUE (id);


--
-- Name: units_language units_language_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units_language
    ADD CONSTRAINT units_language_pkey PRIMARY KEY (id);


--
-- Name: units units_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units
    ADD CONSTRAINT units_pkey PRIMARY KEY (name);


--
-- Name: warehouse warehouse_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.warehouse
    ADD CONSTRAINT warehouse_pkey PRIMARY KEY (id);


--
-- Name: report_categories report_categorys_pkey; Type: CONSTRAINT; Schema: tax; Owner: postgres
--

ALTER TABLE ONLY tax.report_categories
    ADD CONSTRAINT report_categorys_pkey PRIMARY KEY (id);


--
-- Name: report_headings report_headings_pkey; Type: CONSTRAINT; Schema: tax; Owner: postgres
--

ALTER TABLE ONLY tax.report_headings
    ADD CONSTRAINT report_headings_pkey PRIMARY KEY (id);


--
-- Name: report_variables report_variables_pkey; Type: CONSTRAINT; Schema: tax; Owner: postgres
--

ALTER TABLE ONLY tax.report_variables
    ADD CONSTRAINT report_variables_pkey PRIMARY KEY (id);


--
-- Name: acc_trans_chart_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_trans_chart_id_key ON public.acc_trans USING btree (chart_id);


--
-- Name: acc_trans_source_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_trans_source_key ON public.acc_trans USING btree (lower(source));


--
-- Name: acc_trans_trans_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_trans_trans_id_key ON public.acc_trans USING btree (trans_id);


--
-- Name: acc_trans_transdate_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX acc_trans_transdate_key ON public.acc_trans USING btree (transdate);


--
-- Name: ap_employee_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_employee_id_key ON public.ap USING btree (employee_id);


--
-- Name: ap_invnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_invnumber_gin_trgm_idx ON public.ap USING gin (invnumber public.gin_trgm_ops);


--
-- Name: ap_invnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_invnumber_key ON public.ap USING btree (lower(invnumber));


--
-- Name: ap_ordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_ordnumber_gin_trgm_idx ON public.ap USING gin (ordnumber public.gin_trgm_ops);


--
-- Name: ap_ordnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_ordnumber_key ON public.ap USING btree (lower(ordnumber));


--
-- Name: ap_quonumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_quonumber_gin_trgm_idx ON public.ap USING gin (quonumber public.gin_trgm_ops);


--
-- Name: ap_quonumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_quonumber_key ON public.ap USING btree (lower(quonumber));


--
-- Name: ap_transaction_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_transaction_description_gin_trgm_idx ON public.ap USING gin (transaction_description public.gin_trgm_ops);


--
-- Name: ap_transdate_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_transdate_key ON public.ap USING btree (transdate);


--
-- Name: ap_vendor_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ap_vendor_id_key ON public.ap USING btree (vendor_id);


--
-- Name: ar_cusordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_cusordnumber_gin_trgm_idx ON public.ar USING gin (cusordnumber public.gin_trgm_ops);


--
-- Name: ar_customer_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_customer_id_key ON public.ar USING btree (customer_id);


--
-- Name: ar_employee_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_employee_id_key ON public.ar USING btree (employee_id);


--
-- Name: ar_invnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_invnumber_gin_trgm_idx ON public.ar USING gin (invnumber public.gin_trgm_ops);


--
-- Name: ar_invnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_invnumber_key ON public.ar USING btree (lower(invnumber));


--
-- Name: ar_ordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_ordnumber_gin_trgm_idx ON public.ar USING gin (ordnumber public.gin_trgm_ops);


--
-- Name: ar_ordnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_ordnumber_key ON public.ar USING btree (lower(ordnumber));


--
-- Name: ar_quonumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_quonumber_gin_trgm_idx ON public.ar USING gin (quonumber public.gin_trgm_ops);


--
-- Name: ar_quonumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_quonumber_key ON public.ar USING btree (lower(quonumber));


--
-- Name: ar_transaction_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_transaction_description_gin_trgm_idx ON public.ar USING gin (transaction_description public.gin_trgm_ops);


--
-- Name: ar_transdate_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX ar_transdate_key ON public.ar USING btree (transdate);


--
-- Name: assembly_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX assembly_id_key ON public.assembly USING btree (id);


--
-- Name: chart_accno_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX chart_accno_key ON public.chart USING btree (accno);


--
-- Name: chart_category_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chart_category_key ON public.chart USING btree (category);


--
-- Name: chart_link_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX chart_link_key ON public.chart USING btree (link);


--
-- Name: csv_import_report_rows_index_row; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX csv_import_report_rows_index_row ON public.csv_import_report_rows USING btree ("row");


--
-- Name: custom_variables_config_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX custom_variables_config_id_idx ON public.custom_variables USING btree (config_id);


--
-- Name: custom_variables_sub_module_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX custom_variables_sub_module_idx ON public.custom_variables USING btree (sub_module);


--
-- Name: custom_variables_trans_config_module_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX custom_variables_trans_config_module_idx ON public.custom_variables USING btree (config_id, trans_id, sub_module);


--
-- Name: do_cusordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX do_cusordnumber_gin_trgm_idx ON public.delivery_orders USING gin (cusordnumber public.gin_trgm_ops);


--
-- Name: do_donumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX do_donumber_gin_trgm_idx ON public.delivery_orders USING gin (donumber public.gin_trgm_ops);


--
-- Name: do_ordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX do_ordnumber_gin_trgm_idx ON public.delivery_orders USING gin (ordnumber public.gin_trgm_ops);


--
-- Name: do_transaction_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX do_transaction_description_gin_trgm_idx ON public.delivery_orders USING gin (transaction_description public.gin_trgm_ops);


--
-- Name: doi_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX doi_description_gin_trgm_idx ON public.delivery_order_items USING gin (description public.gin_trgm_ops);


--
-- Name: employee_login_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX employee_login_key ON public.employee USING btree (login);


--
-- Name: employee_name_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX employee_name_key ON public.employee USING btree (name);


--
-- Name: generic_translations_type_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX generic_translations_type_id_idx ON public.generic_translations USING btree (language_id, translation_type, translation_id);


--
-- Name: gl_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_description_gin_trgm_idx ON public.gl USING gin (description public.gin_trgm_ops);


--
-- Name: gl_description_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_description_key ON public.gl USING btree (lower(description));


--
-- Name: gl_employee_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_employee_id_key ON public.gl USING btree (employee_id);


--
-- Name: gl_reference_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_reference_gin_trgm_idx ON public.gl USING gin (reference public.gin_trgm_ops);


--
-- Name: gl_reference_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_reference_key ON public.gl USING btree (lower(reference));


--
-- Name: gl_transdate_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX gl_transdate_key ON public.gl USING btree (transdate);


--
-- Name: idx_custom_variables_validity_config_id_trans_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_custom_variables_validity_config_id_trans_id ON public.custom_variables_validity USING btree (config_id, trans_id);


--
-- Name: idx_custom_variables_validity_trans_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_custom_variables_validity_trans_id ON public.custom_variables_validity USING btree (trans_id);


--
-- Name: idx_record_links_from_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_record_links_from_id ON public.record_links USING btree (from_id);


--
-- Name: idx_record_links_from_table; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_record_links_from_table ON public.record_links USING btree (from_table);


--
-- Name: idx_record_links_to_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_record_links_to_id ON public.record_links USING btree (to_id);


--
-- Name: idx_record_links_to_table; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_record_links_to_table ON public.record_links USING btree (to_table);


--
-- Name: inventory_itime_parts_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX inventory_itime_parts_id_idx ON public.inventory USING btree (itime, parts_id);


--
-- Name: inventory_parts_id_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX inventory_parts_id_idx ON public.inventory USING btree (parts_id);


--
-- Name: invoice_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX invoice_description_gin_trgm_idx ON public.invoice USING gin (description public.gin_trgm_ops);


--
-- Name: invoice_trans_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX invoice_trans_id_key ON public.invoice USING btree (trans_id);


--
-- Name: makemodel_model_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX makemodel_model_key ON public.makemodel USING btree (lower(model));


--
-- Name: makemodel_parts_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX makemodel_parts_id_key ON public.makemodel USING btree (parts_id);


--
-- Name: oe_cusordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_cusordnumber_gin_trgm_idx ON public.oe USING gin (cusordnumber public.gin_trgm_ops);


--
-- Name: oe_employee_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_employee_id_key ON public.oe USING btree (employee_id);


--
-- Name: oe_ordnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_ordnumber_gin_trgm_idx ON public.oe USING gin (ordnumber public.gin_trgm_ops);


--
-- Name: oe_ordnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_ordnumber_key ON public.oe USING btree (lower(ordnumber));


--
-- Name: oe_quonumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_quonumber_gin_trgm_idx ON public.oe USING gin (quonumber public.gin_trgm_ops);


--
-- Name: oe_transaction_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_transaction_description_gin_trgm_idx ON public.oe USING gin (transaction_description public.gin_trgm_ops);


--
-- Name: oe_transdate_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX oe_transdate_key ON public.oe USING btree (transdate);


--
-- Name: orderitems_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orderitems_description_gin_trgm_idx ON public.orderitems USING gin (description public.gin_trgm_ops);


--
-- Name: orderitems_trans_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX orderitems_trans_id_key ON public.orderitems USING btree (trans_id);


--
-- Name: part_customer_prices_customer_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX part_customer_prices_customer_id_key ON public.part_customer_prices USING btree (customer_id);


--
-- Name: part_customer_prices_parts_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX part_customer_prices_parts_id_key ON public.part_customer_prices USING btree (parts_id);


--
-- Name: parts_description_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parts_description_gin_trgm_idx ON public.parts USING gin (description public.gin_trgm_ops);


--
-- Name: parts_description_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parts_description_key ON public.parts USING btree (lower(description));


--
-- Name: parts_partnumber_gin_trgm_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parts_partnumber_gin_trgm_idx ON public.parts USING gin (partnumber public.gin_trgm_ops);


--
-- Name: parts_partnumber_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX parts_partnumber_key ON public.parts USING btree (lower(partnumber));


--
-- Name: requirement_spec_items_item_type_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX requirement_spec_items_item_type_key ON public.requirement_spec_items USING btree (item_type);


--
-- Name: shipto_trans_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX shipto_trans_id_key ON public.shipto USING btree (trans_id);


--
-- Name: status_trans_id_key; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX status_trans_id_key ON public.status USING btree (trans_id);


--
-- Name: taxkeys_chartid_startdate; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX taxkeys_chartid_startdate ON public.taxkeys USING btree (chart_id, startdate);


--
-- Name: units_language_unit_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX units_language_unit_idx ON public.units_language USING btree (unit);


--
-- Name: parts add_parts_price_history_entry_after_changes_on_parts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER add_parts_price_history_entry_after_changes_on_parts AFTER INSERT OR UPDATE ON public.parts FOR EACH ROW EXECUTE PROCEDURE public.add_parts_price_history_entry();


--
-- Name: ap after_delete_ap_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_ap_trigger AFTER DELETE ON public.ap FOR EACH ROW EXECUTE PROCEDURE public.clean_up_acc_trans_after_ar_ap_gl_delete();


--
-- Name: ar after_delete_ar_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_ar_trigger AFTER DELETE ON public.ar FOR EACH ROW EXECUTE PROCEDURE public.clean_up_acc_trans_after_ar_ap_gl_delete();


--
-- Name: delivery_terms after_delete_delivery_term_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_delivery_term_trigger AFTER DELETE ON public.delivery_terms FOR EACH ROW EXECUTE PROCEDURE public.generic_translations_delete_on_delivery_terms_delete_trigger();


--
-- Name: gl after_delete_gl_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_gl_trigger AFTER DELETE ON public.gl FOR EACH ROW EXECUTE PROCEDURE public.clean_up_acc_trans_after_ar_ap_gl_delete();


--
-- Name: payment_terms after_delete_payment_term_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_payment_term_trigger AFTER DELETE ON public.payment_terms FOR EACH ROW EXECUTE PROCEDURE public.generic_translations_delete_on_payment_terms_delete_trigger();


--
-- Name: requirement_specs after_delete_requirement_spec_dependencies; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_requirement_spec_dependencies AFTER DELETE ON public.requirement_specs FOR EACH ROW EXECUTE PROCEDURE public.requirement_spec_delete_trigger();


--
-- Name: tax after_delete_tax_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER after_delete_tax_trigger AFTER DELETE ON public.tax FOR EACH ROW EXECUTE PROCEDURE public.generic_translations_delete_on_tax_delete_trigger();


--
-- Name: ap before_delete_ap_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_ap_trigger BEFORE DELETE ON public.ap FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_ap_delete();


--
-- Name: ar before_delete_ar_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_ar_trigger BEFORE DELETE ON public.ar FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_ar_delete();


--
-- Name: delivery_order_items before_delete_delivery_order_items_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_delivery_order_items_trigger BEFORE DELETE ON public.delivery_order_items FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_delivery_order_items_delete();


--
-- Name: delivery_orders before_delete_delivery_orders_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_delivery_orders_trigger BEFORE DELETE ON public.delivery_orders FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_delivery_orders_delete();


--
-- Name: gl before_delete_gl_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_gl_trigger BEFORE DELETE ON public.gl FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_gl_delete();


--
-- Name: invoice before_delete_invoice_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_invoice_trigger BEFORE DELETE ON public.invoice FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_invoice_delete();


--
-- Name: letter before_delete_letter_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_letter_trigger BEFORE DELETE ON public.letter FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_letter_delete();


--
-- Name: oe before_delete_oe_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_oe_trigger BEFORE DELETE ON public.oe FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_oe_delete();


--
-- Name: orderitems before_delete_orderitems_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER before_delete_orderitems_trigger BEFORE DELETE ON public.orderitems FOR EACH ROW EXECUTE PROCEDURE public.clean_up_record_links_before_orderitems_delete();


--
-- Name: delivery_order_items_stock check_bin_wh_delivery_order_items_stock; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER check_bin_wh_delivery_order_items_stock BEFORE INSERT OR UPDATE ON public.delivery_order_items_stock FOR EACH ROW EXECUTE PROCEDURE public.check_bin_belongs_to_wh();


--
-- Name: inventory check_bin_wh_inventory; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER check_bin_wh_inventory BEFORE INSERT OR UPDATE ON public.inventory FOR EACH ROW EXECUTE PROCEDURE public.check_bin_belongs_to_wh();


--
-- Name: parts check_bin_wh_parts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER check_bin_wh_parts BEFORE INSERT OR UPDATE ON public.parts FOR EACH ROW EXECUTE PROCEDURE public.check_bin_belongs_to_wh();


--
-- Name: contacts contacts_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER contacts_delete_custom_variables_after_deletion AFTER DELETE ON public.contacts FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: delivery_orders delete_delivery_orders_dependencies; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delete_delivery_orders_dependencies BEFORE DELETE ON public.delivery_orders FOR EACH ROW EXECUTE PROCEDURE public.delivery_orders_before_delete_trigger();


--
-- Name: oe delete_oe_dependencies; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delete_oe_dependencies BEFORE DELETE ON public.oe FOR EACH ROW EXECUTE PROCEDURE public.oe_before_delete_trigger();


--
-- Name: requirement_specs delete_requirement_spec_custom_variables; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delete_requirement_spec_custom_variables BEFORE DELETE ON public.requirement_specs FOR EACH ROW EXECUTE PROCEDURE public.delete_requirement_spec_custom_variables_trigger();


--
-- Name: requirement_specs delete_requirement_spec_dependencies; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delete_requirement_spec_dependencies BEFORE DELETE ON public.requirement_specs FOR EACH ROW EXECUTE PROCEDURE public.requirement_spec_delete_trigger();


--
-- Name: requirement_spec_items delete_requirement_spec_item_dependencies; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delete_requirement_spec_item_dependencies BEFORE DELETE ON public.requirement_spec_items FOR EACH ROW EXECUTE PROCEDURE public.requirement_spec_item_before_delete_trigger();


--
-- Name: delivery_order_items delivery_order_items_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delivery_order_items_delete_custom_variables_after_deletion AFTER DELETE ON public.delivery_order_items FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: delivery_orders delivery_orders_on_update_close_follow_up; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER delivery_orders_on_update_close_follow_up AFTER UPDATE ON public.delivery_orders FOR EACH ROW EXECUTE PROCEDURE public.follow_up_close_when_oe_closed_trigger();


--
-- Name: follow_ups follow_up_delete_notes; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER follow_up_delete_notes AFTER DELETE ON public.follow_ups FOR EACH ROW EXECUTE PROCEDURE public.follow_up_delete_notes_trigger();


--
-- Name: invoice invoice_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER invoice_delete_custom_variables_after_deletion AFTER DELETE ON public.invoice FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: acc_trans mtime_acc_trans; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_acc_trans BEFORE UPDATE ON public.acc_trans FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: ap mtime_ap; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_ap BEFORE UPDATE ON public.ap FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: ar mtime_ar; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_ar BEFORE UPDATE ON public.ar FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: bin mtime_bin; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_bin BEFORE UPDATE ON public.bin FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: chart mtime_chart; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_chart BEFORE UPDATE ON public.chart FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: contacts mtime_contacts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_contacts BEFORE UPDATE ON public.contacts FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: custom_data_export_queries mtime_custom_data_export_queries; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_custom_data_export_queries BEFORE UPDATE ON public.custom_data_export_queries FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: custom_data_export_query_parameters mtime_custom_data_export_query_parameters; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_custom_data_export_query_parameters BEFORE UPDATE ON public.custom_data_export_query_parameters FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: custom_variable_config_partsgroups mtime_custom_variable_config_partsgroups; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_custom_variable_config_partsgroups BEFORE UPDATE ON public.custom_variable_config_partsgroups FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: custom_variable_configs mtime_custom_variable_configs; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_custom_variable_configs BEFORE UPDATE ON public.custom_variable_configs FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: custom_variables mtime_custom_variables; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_custom_variables BEFORE UPDATE ON public.custom_variables FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: delivery_order_items mtime_delivery_order_items_id; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_delivery_order_items_id BEFORE UPDATE ON public.delivery_order_items FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: delivery_order_items_stock mtime_delivery_order_items_stock; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_delivery_order_items_stock BEFORE UPDATE ON public.delivery_order_items_stock FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: delivery_orders mtime_delivery_orders; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_delivery_orders BEFORE UPDATE ON public.delivery_orders FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: delivery_terms mtime_delivery_terms; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_delivery_terms BEFORE UPDATE ON public.delivery_terms FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: department mtime_department; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_department BEFORE UPDATE ON public.department FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: dunning mtime_dunning; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_dunning BEFORE UPDATE ON public.dunning FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: email_journal mtime_email_journal; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_email_journal BEFORE UPDATE ON public.email_journal FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: email_journal_attachments mtime_email_journal_attachments; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_email_journal_attachments BEFORE UPDATE ON public.email_journal_attachments FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: follow_up_links mtime_follow_up_links; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_follow_up_links BEFORE UPDATE ON public.follow_up_links FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: follow_ups mtime_follow_ups; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_follow_ups BEFORE UPDATE ON public.follow_ups FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: gl mtime_gl; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_gl BEFORE UPDATE ON public.gl FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: inventory mtime_inventory; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_inventory BEFORE UPDATE ON public.inventory FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: invoice mtime_invoice; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_invoice BEFORE UPDATE ON public.invoice FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: notes mtime_notes; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_notes BEFORE UPDATE ON public.notes FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: oe mtime_oe; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_oe BEFORE UPDATE ON public.oe FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: orderitems mtime_orderitems; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_orderitems BEFORE UPDATE ON public.orderitems FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: parts mtime_parts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_parts BEFORE UPDATE ON public.parts FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: partsgroup mtime_partsgroup; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_partsgroup BEFORE UPDATE ON public.partsgroup FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: price_rule_items mtime_price_rule_items; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_price_rule_items BEFORE UPDATE ON public.price_rule_items FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: price_rules mtime_price_rules; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_price_rules BEFORE UPDATE ON public.price_rules FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project mtime_project; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project BEFORE UPDATE ON public.project FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project_participants mtime_project_participants; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project_participants BEFORE UPDATE ON public.project_participants FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project_phase_participants mtime_project_phase_paticipants; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project_phase_paticipants BEFORE UPDATE ON public.project_phase_participants FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project_phases mtime_project_phases; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project_phases BEFORE UPDATE ON public.project_phases FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project_roles mtime_project_roles; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project_roles BEFORE UPDATE ON public.project_roles FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: project_statuses mtime_project_status; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_project_status BEFORE UPDATE ON public.project_statuses FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: record_templates mtime_record_templates; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_record_templates BEFORE UPDATE ON public.record_templates FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_acceptance_statuses mtime_requirement_spec_acceptance_statuses; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_acceptance_statuses BEFORE UPDATE ON public.requirement_spec_acceptance_statuses FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_complexities mtime_requirement_spec_complexities; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_complexities BEFORE UPDATE ON public.requirement_spec_complexities FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_items mtime_requirement_spec_items; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_items BEFORE UPDATE ON public.requirement_spec_items FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_orders mtime_requirement_spec_orders; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_orders BEFORE UPDATE ON public.requirement_spec_orders FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_pictures mtime_requirement_spec_pictures; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_pictures BEFORE UPDATE ON public.requirement_spec_pictures FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_predefined_texts mtime_requirement_spec_predefined_texts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_predefined_texts BEFORE UPDATE ON public.requirement_spec_predefined_texts FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_risks mtime_requirement_spec_risks; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_risks BEFORE UPDATE ON public.requirement_spec_risks FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_statuses mtime_requirement_spec_statuses; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_statuses BEFORE UPDATE ON public.requirement_spec_statuses FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_text_blocks mtime_requirement_spec_text_blocks; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_text_blocks BEFORE UPDATE ON public.requirement_spec_text_blocks FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_types mtime_requirement_spec_types; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_types BEFORE UPDATE ON public.requirement_spec_types FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_spec_versions mtime_requirement_spec_versions; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_spec_versions BEFORE UPDATE ON public.requirement_spec_versions FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: requirement_specs mtime_requirement_specs; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_requirement_specs BEFORE UPDATE ON public.requirement_specs FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: shop_images mtime_shop_images; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_shop_images BEFORE UPDATE ON public.shop_images FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: shop_parts mtime_shop_parts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_shop_parts BEFORE UPDATE ON public.shop_parts FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: status mtime_status; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_status BEFORE UPDATE ON public.status FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: stocktakings mtime_stocktakings; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_stocktakings BEFORE UPDATE ON public.stocktakings FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: tax mtime_tax; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_tax BEFORE UPDATE ON public.tax FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: transfer_type mtime_transfer_type; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_transfer_type BEFORE UPDATE ON public.transfer_type FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: warehouse mtime_warehouse; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER mtime_warehouse BEFORE UPDATE ON public.warehouse FOR EACH ROW EXECUTE PROCEDURE public.set_mtime();


--
-- Name: oe oe_before_delete_clear_follow_ups; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER oe_before_delete_clear_follow_ups BEFORE DELETE ON public.oe FOR EACH ROW EXECUTE PROCEDURE public.follow_up_delete_when_oe_is_deleted_trigger();


--
-- Name: oe oe_on_update_close_follow_up; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER oe_on_update_close_follow_up AFTER UPDATE ON public.oe FOR EACH ROW EXECUTE PROCEDURE public.follow_up_close_when_oe_closed_trigger();


--
-- Name: orderitems orderitems_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER orderitems_delete_custom_variables_after_deletion AFTER DELETE ON public.orderitems FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: parts parts_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER parts_delete_custom_variables_after_deletion AFTER DELETE ON public.parts FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: parts priceupdate_parts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER priceupdate_parts AFTER UPDATE ON public.parts FOR EACH ROW EXECUTE PROCEDURE public.set_priceupdate_parts();


--
-- Name: project project_delete_custom_variables_after_deletion; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER project_delete_custom_variables_after_deletion AFTER DELETE ON public.project FOR EACH ROW EXECUTE PROCEDURE public.delete_custom_variables_trigger();


--
-- Name: assembly trig_assembly_purchase_price; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trig_assembly_purchase_price AFTER INSERT OR DELETE OR UPDATE ON public.assembly FOR EACH ROW EXECUTE PROCEDURE public.update_purchase_price();


--
-- Name: inventory trig_update_onhand; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trig_update_onhand AFTER INSERT OR DELETE OR UPDATE ON public.inventory FOR EACH ROW EXECUTE PROCEDURE public.update_onhand();


--
-- Name: requirement_spec_items update_requirement_spec_item_time_estimation; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER update_requirement_spec_item_time_estimation AFTER INSERT OR DELETE OR UPDATE ON public.requirement_spec_items FOR EACH ROW EXECUTE PROCEDURE public.requirement_spec_item_time_estimation_updater_trigger();


--
-- Name: invoice $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT "$1" FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: ar $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT "$1" FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: ap $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT "$1" FOREIGN KEY (vendor_id) REFERENCES public.vendor(id);


--
-- Name: units $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units
    ADD CONSTRAINT "$1" FOREIGN KEY (base_unit) REFERENCES public.units(name);


--
-- Name: parts $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT "$1" FOREIGN KEY (buchungsgruppen_id) REFERENCES public.buchungsgruppen(id);


--
-- Name: acc_trans $1; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_trans
    ADD CONSTRAINT "$1" FOREIGN KEY (chart_id) REFERENCES public.chart(id);


--
-- Name: acc_trans acc_trans_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_trans
    ADD CONSTRAINT acc_trans_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: acc_trans acc_trans_tax_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.acc_trans
    ADD CONSTRAINT acc_trans_tax_id_fkey FOREIGN KEY (tax_id) REFERENCES public.tax(id);


--
-- Name: ap ap_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: ap ap_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: ap ap_delivery_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_delivery_term_id_fkey FOREIGN KEY (delivery_term_id) REFERENCES public.delivery_terms(id);


--
-- Name: ap ap_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id);


--
-- Name: ap ap_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: ap ap_globalproject_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_globalproject_id_fkey FOREIGN KEY (globalproject_id) REFERENCES public.project(id);


--
-- Name: ap ap_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: ap ap_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payment_terms(id);


--
-- Name: ap ap_storno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_storno_id_fkey FOREIGN KEY (storno_id) REFERENCES public.ap(id);


--
-- Name: ap ap_taxzone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ap
    ADD CONSTRAINT ap_taxzone_id_fkey FOREIGN KEY (taxzone_id) REFERENCES public.tax_zones(id);


--
-- Name: ar ar_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: ar ar_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: ar ar_delivery_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_delivery_term_id_fkey FOREIGN KEY (delivery_term_id) REFERENCES public.delivery_terms(id);


--
-- Name: ar ar_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id);


--
-- Name: ar ar_dunning_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_dunning_config_id_fkey FOREIGN KEY (dunning_config_id) REFERENCES public.dunning_config(id);


--
-- Name: ar ar_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: ar ar_globalproject_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_globalproject_id_fkey FOREIGN KEY (globalproject_id) REFERENCES public.project(id);


--
-- Name: ar ar_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: ar ar_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payment_terms(id);


--
-- Name: ar ar_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.employee(id);


--
-- Name: ar ar_shipto_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_shipto_id_fkey FOREIGN KEY (shipto_id) REFERENCES public.shipto(shipto_id);


--
-- Name: ar ar_storno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_storno_id_fkey FOREIGN KEY (storno_id) REFERENCES public.ar(id);


--
-- Name: ar ar_taxzone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.ar
    ADD CONSTRAINT ar_taxzone_id_fkey FOREIGN KEY (taxzone_id) REFERENCES public.tax_zones(id);


--
-- Name: assembly assembly_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly
    ADD CONSTRAINT assembly_id_fkey FOREIGN KEY (id) REFERENCES public.parts(id);


--
-- Name: assembly assembly_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assembly
    ADD CONSTRAINT assembly_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: assortment_items assortment_items_assortment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assortment_items
    ADD CONSTRAINT assortment_items_assortment_id_fkey FOREIGN KEY (assortment_id) REFERENCES public.parts(id) ON DELETE CASCADE;


--
-- Name: assortment_items assortment_items_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assortment_items
    ADD CONSTRAINT assortment_items_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: assortment_items assortment_items_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.assortment_items
    ADD CONSTRAINT assortment_items_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_acc_trans_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_acc_trans_id_fkey FOREIGN KEY (acc_trans_id) REFERENCES public.acc_trans(acc_trans_id);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_ap_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_ap_id_fkey FOREIGN KEY (ap_id) REFERENCES public.ap(id);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_ar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_ar_id_fkey FOREIGN KEY (ar_id) REFERENCES public.ar(id);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_bank_transaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_bank_transaction_id_fkey FOREIGN KEY (bank_transaction_id) REFERENCES public.bank_transactions(id);


--
-- Name: bank_transaction_acc_trans bank_transaction_acc_trans_gl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transaction_acc_trans
    ADD CONSTRAINT bank_transaction_acc_trans_gl_id_fkey FOREIGN KEY (gl_id) REFERENCES public.gl(id);


--
-- Name: bank_transactions bank_transactions_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transactions
    ADD CONSTRAINT bank_transactions_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: bank_transactions bank_transactions_local_bank_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bank_transactions
    ADD CONSTRAINT bank_transactions_local_bank_account_id_fkey FOREIGN KEY (local_bank_account_id) REFERENCES public.bank_accounts(id);


--
-- Name: bin bin_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.bin
    ADD CONSTRAINT bin_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: buchungsgruppen buchungsgruppen_inventory_accno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.buchungsgruppen
    ADD CONSTRAINT buchungsgruppen_inventory_accno_id_fkey FOREIGN KEY (inventory_accno_id) REFERENCES public.chart(id);


--
-- Name: csv_import_report_rows csv_import_report_rows_csv_import_report_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_rows
    ADD CONSTRAINT csv_import_report_rows_csv_import_report_id_fkey FOREIGN KEY (csv_import_report_id) REFERENCES public.csv_import_reports(id);


--
-- Name: csv_import_report_status csv_import_report_status_csv_import_report_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.csv_import_report_status
    ADD CONSTRAINT csv_import_report_status_csv_import_report_id_fkey FOREIGN KEY (csv_import_report_id) REFERENCES public.csv_import_reports(id);


--
-- Name: custom_data_export_query_parameters custom_data_export_query_parameters_query_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_data_export_query_parameters
    ADD CONSTRAINT custom_data_export_query_parameters_query_id_fkey FOREIGN KEY (query_id) REFERENCES public.custom_data_export_queries(id) ON DELETE CASCADE;


--
-- Name: custom_variable_config_partsgroups custom_variable_config_partsgrou_custom_variable_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variable_config_partsgroups
    ADD CONSTRAINT custom_variable_config_partsgrou_custom_variable_config_id_fkey FOREIGN KEY (custom_variable_config_id) REFERENCES public.custom_variable_configs(id);


--
-- Name: custom_variable_config_partsgroups custom_variable_config_partsgroups_partsgroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variable_config_partsgroups
    ADD CONSTRAINT custom_variable_config_partsgroups_partsgroup_id_fkey FOREIGN KEY (partsgroup_id) REFERENCES public.partsgroup(id);


--
-- Name: custom_variables custom_variables_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variables
    ADD CONSTRAINT custom_variables_config_id_fkey FOREIGN KEY (config_id) REFERENCES public.custom_variable_configs(id);


--
-- Name: custom_variables_validity custom_variables_validity_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.custom_variables_validity
    ADD CONSTRAINT custom_variables_validity_config_id_fkey FOREIGN KEY (config_id) REFERENCES public.custom_variable_configs(id);


--
-- Name: defaults defaults_ap_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_ap_chart_id_fkey FOREIGN KEY (ap_chart_id) REFERENCES public.chart(id);


--
-- Name: defaults defaults_ar_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_ar_chart_id_fkey FOREIGN KEY (ar_chart_id) REFERENCES public.chart(id);


--
-- Name: defaults defaults_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES public.bin(id);


--
-- Name: defaults defaults_bin_id_ignore_onhand_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_bin_id_ignore_onhand_fkey FOREIGN KEY (bin_id_ignore_onhand) REFERENCES public.bin(id);


--
-- Name: defaults defaults_carry_over_account_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_carry_over_account_chart_id_fkey FOREIGN KEY (carry_over_account_chart_id) REFERENCES public.chart(id);


--
-- Name: defaults defaults_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: defaults defaults_loss_carried_forward_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_loss_carried_forward_chart_id_fkey FOREIGN KEY (loss_carried_forward_chart_id) REFERENCES public.chart(id);


--
-- Name: defaults defaults_profit_carried_forward_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_profit_carried_forward_chart_id_fkey FOREIGN KEY (profit_carried_forward_chart_id) REFERENCES public.chart(id);


--
-- Name: defaults defaults_project_status_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_project_status_id_fkey FOREIGN KEY (project_status_id) REFERENCES public.project_statuses(id);


--
-- Name: defaults defaults_project_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_project_type_id_fkey FOREIGN KEY (project_type_id) REFERENCES public.project_types(id);


--
-- Name: defaults defaults_requirement_spec_section_order_part_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_requirement_spec_section_order_part_id_fkey FOREIGN KEY (requirement_spec_section_order_part_id) REFERENCES public.parts(id) ON DELETE SET NULL;


--
-- Name: defaults defaults_stocktaking_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_stocktaking_bin_id_fkey FOREIGN KEY (stocktaking_bin_id) REFERENCES public.bin(id);


--
-- Name: defaults defaults_stocktaking_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_stocktaking_warehouse_id_fkey FOREIGN KEY (stocktaking_warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: defaults defaults_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: defaults defaults_warehouse_id_ignore_onhand_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.defaults
    ADD CONSTRAINT defaults_warehouse_id_ignore_onhand_fkey FOREIGN KEY (warehouse_id_ignore_onhand) REFERENCES public.warehouse(id);


--
-- Name: delivery_order_items delivery_order_items_delivery_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_delivery_order_id_fkey FOREIGN KEY (delivery_order_id) REFERENCES public.delivery_orders(id) ON DELETE CASCADE;


--
-- Name: delivery_order_items delivery_order_items_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id) ON DELETE RESTRICT;


--
-- Name: delivery_order_items delivery_order_items_price_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_price_factor_id_fkey FOREIGN KEY (price_factor_id) REFERENCES public.price_factors(id) ON DELETE RESTRICT;


--
-- Name: delivery_order_items delivery_order_items_pricegroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_pricegroup_id_fkey FOREIGN KEY (pricegroup_id) REFERENCES public.pricegroup(id) ON DELETE RESTRICT;


--
-- Name: delivery_order_items delivery_order_items_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id) ON DELETE SET NULL;


--
-- Name: delivery_order_items_stock delivery_order_items_stock_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items_stock
    ADD CONSTRAINT delivery_order_items_stock_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES public.bin(id) ON DELETE RESTRICT;


--
-- Name: delivery_order_items_stock delivery_order_items_stock_delivery_order_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items_stock
    ADD CONSTRAINT delivery_order_items_stock_delivery_order_item_id_fkey FOREIGN KEY (delivery_order_item_id) REFERENCES public.delivery_order_items(id) ON DELETE CASCADE;


--
-- Name: inventory delivery_order_items_stock_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT delivery_order_items_stock_id_fkey FOREIGN KEY (delivery_order_items_stock_id) REFERENCES public.delivery_order_items_stock(id);


--
-- Name: delivery_order_items_stock delivery_order_items_stock_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items_stock
    ADD CONSTRAINT delivery_order_items_stock_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id) ON DELETE RESTRICT;


--
-- Name: delivery_order_items delivery_order_items_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_order_items
    ADD CONSTRAINT delivery_order_items_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: delivery_orders delivery_orders_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: delivery_orders delivery_orders_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: delivery_orders delivery_orders_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: delivery_orders delivery_orders_delivery_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_delivery_term_id_fkey FOREIGN KEY (delivery_term_id) REFERENCES public.delivery_terms(id);


--
-- Name: delivery_orders delivery_orders_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id);


--
-- Name: delivery_orders delivery_orders_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: delivery_orders delivery_orders_globalproject_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_globalproject_id_fkey FOREIGN KEY (globalproject_id) REFERENCES public.project(id);


--
-- Name: delivery_orders delivery_orders_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: delivery_orders delivery_orders_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payment_terms(id);


--
-- Name: delivery_orders delivery_orders_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.employee(id);


--
-- Name: delivery_orders delivery_orders_shipto_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_shipto_id_fkey FOREIGN KEY (shipto_id) REFERENCES public.shipto(shipto_id);


--
-- Name: delivery_orders delivery_orders_taxzone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_taxzone_id_fkey FOREIGN KEY (taxzone_id) REFERENCES public.tax_zones(id);


--
-- Name: delivery_orders delivery_orders_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.delivery_orders
    ADD CONSTRAINT delivery_orders_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendor(id);


--
-- Name: drafts drafts_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.drafts
    ADD CONSTRAINT drafts_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: dunning dunning_dunning_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dunning
    ADD CONSTRAINT dunning_dunning_config_id_fkey FOREIGN KEY (dunning_config_id) REFERENCES public.dunning_config(id);


--
-- Name: dunning dunning_fee_interest_ar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dunning
    ADD CONSTRAINT dunning_fee_interest_ar_id_fkey FOREIGN KEY (fee_interest_ar_id) REFERENCES public.ar(id);


--
-- Name: dunning dunning_trans_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.dunning
    ADD CONSTRAINT dunning_trans_id_fkey FOREIGN KEY (trans_id) REFERENCES public.ar(id) ON DELETE CASCADE;


--
-- Name: email_journal_attachments email_journal_attachments_email_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal_attachments
    ADD CONSTRAINT email_journal_attachments_email_journal_id_fkey FOREIGN KEY (email_journal_id) REFERENCES public.email_journal(id) ON DELETE CASCADE;


--
-- Name: email_journal email_journal_sender_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.email_journal
    ADD CONSTRAINT email_journal_sender_id_fkey FOREIGN KEY (sender_id) REFERENCES public.employee(id);


--
-- Name: employee_project_invoices employee_project_invoices_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employee_project_invoices
    ADD CONSTRAINT employee_project_invoices_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id) ON DELETE CASCADE;


--
-- Name: employee_project_invoices employee_project_invoices_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.employee_project_invoices
    ADD CONSTRAINT employee_project_invoices_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id) ON DELETE CASCADE;


--
-- Name: exchangerate exchangerate_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.exchangerate
    ADD CONSTRAINT exchangerate_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: follow_up_access follow_up_access_what_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_access
    ADD CONSTRAINT follow_up_access_what_fkey FOREIGN KEY (what) REFERENCES public.employee(id);


--
-- Name: follow_up_access follow_up_access_who_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_access
    ADD CONSTRAINT follow_up_access_who_fkey FOREIGN KEY (who) REFERENCES public.employee(id);


--
-- Name: follow_up_links follow_up_links_follow_up_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_up_links
    ADD CONSTRAINT follow_up_links_follow_up_id_fkey FOREIGN KEY (follow_up_id) REFERENCES public.follow_ups(id) ON DELETE CASCADE;


--
-- Name: follow_ups follow_ups_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_ups
    ADD CONSTRAINT follow_ups_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.employee(id);


--
-- Name: follow_ups follow_ups_created_for_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_ups
    ADD CONSTRAINT follow_ups_created_for_user_fkey FOREIGN KEY (created_for_user) REFERENCES public.employee(id);


--
-- Name: follow_ups follow_ups_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.follow_ups
    ADD CONSTRAINT follow_ups_note_id_fkey FOREIGN KEY (note_id) REFERENCES public.notes(id);


--
-- Name: generic_translations generic_translations_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.generic_translations
    ADD CONSTRAINT generic_translations_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id) ON DELETE CASCADE;


--
-- Name: gl gl_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gl
    ADD CONSTRAINT gl_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id);


--
-- Name: gl gl_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gl
    ADD CONSTRAINT gl_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: gl gl_storno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.gl
    ADD CONSTRAINT gl_storno_id_fkey FOREIGN KEY (storno_id) REFERENCES public.gl(id);


--
-- Name: history_erp history_erp_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.history_erp
    ADD CONSTRAINT history_erp_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: inventory inventory_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES public.bin(id);


--
-- Name: inventory inventory_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: inventory inventory_invoice_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_invoice_id_fkey FOREIGN KEY (invoice_id) REFERENCES public.invoice(id);


--
-- Name: inventory inventory_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: inventory inventory_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: inventory inventory_trans_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_trans_type_id_fkey FOREIGN KEY (trans_type_id) REFERENCES public.transfer_type(id);


--
-- Name: inventory inventory_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT inventory_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: invoice invoice_price_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT invoice_price_factor_id_fkey FOREIGN KEY (price_factor_id) REFERENCES public.price_factors(id);


--
-- Name: invoice invoice_pricegroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT invoice_pricegroup_id_fkey FOREIGN KEY (pricegroup_id) REFERENCES public.pricegroup(id);


--
-- Name: invoice invoice_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT invoice_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: invoice invoice_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.invoice
    ADD CONSTRAINT invoice_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: letter letter_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: letter letter_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: letter_draft letter_draft_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: letter_draft letter_draft_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: letter_draft letter_draft_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: letter_draft letter_draft_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.employee(id);


--
-- Name: letter_draft letter_draft_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter_draft
    ADD CONSTRAINT letter_draft_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendor(id);


--
-- Name: letter letter_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: letter letter_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.employee(id);


--
-- Name: letter letter_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.letter
    ADD CONSTRAINT letter_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendor(id);


--
-- Name: makemodel makemodel_make_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.makemodel
    ADD CONSTRAINT makemodel_make_fkey FOREIGN KEY (make) REFERENCES public.vendor(id);


--
-- Name: notes notes_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.notes
    ADD CONSTRAINT notes_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.employee(id);


--
-- Name: oe oe_cp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_cp_id_fkey FOREIGN KEY (cp_id) REFERENCES public.contacts(cp_id);


--
-- Name: oe oe_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id);


--
-- Name: oe oe_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: oe oe_delivery_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_delivery_customer_id_fkey FOREIGN KEY (delivery_customer_id) REFERENCES public.customer(id);


--
-- Name: oe oe_delivery_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_delivery_term_id_fkey FOREIGN KEY (delivery_term_id) REFERENCES public.delivery_terms(id);


--
-- Name: oe oe_delivery_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_delivery_vendor_id_fkey FOREIGN KEY (delivery_vendor_id) REFERENCES public.vendor(id);


--
-- Name: oe oe_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id);


--
-- Name: oe oe_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: oe oe_globalproject_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_globalproject_id_fkey FOREIGN KEY (globalproject_id) REFERENCES public.project(id);


--
-- Name: inventory oe_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.inventory
    ADD CONSTRAINT oe_id_fkey FOREIGN KEY (oe_id) REFERENCES public.delivery_orders(id);


--
-- Name: oe oe_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: oe oe_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payment_terms(id);


--
-- Name: oe oe_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.employee(id);


--
-- Name: oe oe_shipto_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_shipto_id_fkey FOREIGN KEY (shipto_id) REFERENCES public.shipto(shipto_id);


--
-- Name: oe oe_taxzone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_taxzone_id_fkey FOREIGN KEY (taxzone_id) REFERENCES public.tax_zones(id);


--
-- Name: oe oe_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.oe
    ADD CONSTRAINT oe_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendor(id);


--
-- Name: orderitems orderitems_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id) ON DELETE RESTRICT;


--
-- Name: orderitems orderitems_price_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_price_factor_id_fkey FOREIGN KEY (price_factor_id) REFERENCES public.price_factors(id) ON DELETE RESTRICT;


--
-- Name: orderitems orderitems_pricegroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_pricegroup_id_fkey FOREIGN KEY (pricegroup_id) REFERENCES public.pricegroup(id) ON DELETE RESTRICT;


--
-- Name: orderitems orderitems_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id) ON DELETE SET NULL;


--
-- Name: orderitems orderitems_trans_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_trans_id_fkey FOREIGN KEY (trans_id) REFERENCES public.oe(id) ON DELETE CASCADE;


--
-- Name: orderitems orderitems_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.orderitems
    ADD CONSTRAINT orderitems_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: parts part_classification_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT part_classification_id_fkey FOREIGN KEY (classification_id) REFERENCES public.part_classifications(id);


--
-- Name: part_customer_prices part_customer_prices_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_customer_prices
    ADD CONSTRAINT part_customer_prices_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: part_customer_prices part_customer_prices_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.part_customer_prices
    ADD CONSTRAINT part_customer_prices_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: parts parts_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES public.bin(id);


--
-- Name: parts parts_partsgroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_partsgroup_id_fkey FOREIGN KEY (partsgroup_id) REFERENCES public.partsgroup(id);


--
-- Name: parts parts_payment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_payment_id_fkey FOREIGN KEY (payment_id) REFERENCES public.payment_terms(id);


--
-- Name: parts parts_price_factor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_price_factor_id_fkey FOREIGN KEY (price_factor_id) REFERENCES public.price_factors(id);


--
-- Name: parts_price_history parts_price_history_part_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts_price_history
    ADD CONSTRAINT parts_price_history_part_id_fkey FOREIGN KEY (part_id) REFERENCES public.parts(id) ON DELETE CASCADE;


--
-- Name: parts parts_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: parts parts_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.parts
    ADD CONSTRAINT parts_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: periodic_invoices periodic_invoices_ar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices
    ADD CONSTRAINT periodic_invoices_ar_id_fkey FOREIGN KEY (ar_id) REFERENCES public.ar(id) ON DELETE CASCADE;


--
-- Name: periodic_invoices periodic_invoices_config_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices
    ADD CONSTRAINT periodic_invoices_config_id_fkey FOREIGN KEY (config_id) REFERENCES public.periodic_invoices_configs(id) ON DELETE CASCADE;


--
-- Name: periodic_invoices_configs periodic_invoices_configs_ar_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices_configs
    ADD CONSTRAINT periodic_invoices_configs_ar_chart_id_fkey FOREIGN KEY (ar_chart_id) REFERENCES public.chart(id) ON DELETE RESTRICT;


--
-- Name: periodic_invoices_configs periodic_invoices_configs_email_recipient_contact_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices_configs
    ADD CONSTRAINT periodic_invoices_configs_email_recipient_contact_id_fkey FOREIGN KEY (email_recipient_contact_id) REFERENCES public.contacts(cp_id) ON DELETE SET NULL;


--
-- Name: periodic_invoices_configs periodic_invoices_configs_oe_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices_configs
    ADD CONSTRAINT periodic_invoices_configs_oe_id_fkey FOREIGN KEY (oe_id) REFERENCES public.oe(id) ON DELETE CASCADE;


--
-- Name: periodic_invoices_configs periodic_invoices_configs_printer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.periodic_invoices_configs
    ADD CONSTRAINT periodic_invoices_configs_printer_id_fkey FOREIGN KEY (printer_id) REFERENCES public.printers(id) ON DELETE SET NULL;


--
-- Name: price_rule_items price_rule_items_custom_variable_configs_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rule_items
    ADD CONSTRAINT price_rule_items_custom_variable_configs_id_fkey FOREIGN KEY (custom_variable_configs_id) REFERENCES public.custom_variable_configs(id);


--
-- Name: price_rule_items price_rule_items_price_rules_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.price_rule_items
    ADD CONSTRAINT price_rule_items_price_rules_id_fkey FOREIGN KEY (price_rules_id) REFERENCES public.price_rules(id) ON DELETE CASCADE;


--
-- Name: prices prices_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.prices
    ADD CONSTRAINT prices_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id) ON DELETE CASCADE;


--
-- Name: prices prices_pricegroup_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.prices
    ADD CONSTRAINT prices_pricegroup_id_fkey FOREIGN KEY (pricegroup_id) REFERENCES public.pricegroup(id) ON DELETE CASCADE;


--
-- Name: project project_billable_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_billable_customer_id_fkey FOREIGN KEY (billable_customer_id) REFERENCES public.customer(id);


--
-- Name: project project_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: project_participants project_participants_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_participants
    ADD CONSTRAINT project_participants_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: project_participants project_participants_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_participants
    ADD CONSTRAINT project_participants_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: project_participants project_participants_project_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_participants
    ADD CONSTRAINT project_participants_project_role_id_fkey FOREIGN KEY (project_role_id) REFERENCES public.project_roles(id);


--
-- Name: project_phase_participants project_phase_participants_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phase_participants
    ADD CONSTRAINT project_phase_participants_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: project_phase_participants project_phase_participants_project_phase_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phase_participants
    ADD CONSTRAINT project_phase_participants_project_phase_id_fkey FOREIGN KEY (project_phase_id) REFERENCES public.project_phases(id);


--
-- Name: project_phase_participants project_phase_participants_project_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phase_participants
    ADD CONSTRAINT project_phase_participants_project_role_id_fkey FOREIGN KEY (project_role_id) REFERENCES public.project_roles(id);


--
-- Name: project_phases project_phases_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project_phases
    ADD CONSTRAINT project_phases_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: project project_project_status_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_project_status_id_fkey FOREIGN KEY (project_status_id) REFERENCES public.project_statuses(id);


--
-- Name: project project_project_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.project
    ADD CONSTRAINT project_project_type_id_fkey FOREIGN KEY (project_type_id) REFERENCES public.project_types(id);


--
-- Name: reconciliation_links reconciliation_links_acc_trans_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reconciliation_links
    ADD CONSTRAINT reconciliation_links_acc_trans_id_fkey FOREIGN KEY (acc_trans_id) REFERENCES public.acc_trans(acc_trans_id) ON DELETE CASCADE;


--
-- Name: reconciliation_links reconciliation_links_bank_transaction_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.reconciliation_links
    ADD CONSTRAINT reconciliation_links_bank_transaction_id FOREIGN KEY (bank_transaction_id) REFERENCES public.bank_transactions(id) ON DELETE CASCADE;


--
-- Name: record_template_items record_template_items_chart_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items
    ADD CONSTRAINT record_template_items_chart_id FOREIGN KEY (chart_id) REFERENCES public.chart(id) ON DELETE CASCADE;


--
-- Name: record_template_items record_template_items_project_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items
    ADD CONSTRAINT record_template_items_project_id FOREIGN KEY (project_id) REFERENCES public.project(id) ON DELETE SET NULL;


--
-- Name: record_template_items record_template_items_record_template_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items
    ADD CONSTRAINT record_template_items_record_template_id FOREIGN KEY (record_template_id) REFERENCES public.record_templates(id) ON DELETE CASCADE;


--
-- Name: record_template_items record_template_items_tax_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_template_items
    ADD CONSTRAINT record_template_items_tax_id FOREIGN KEY (tax_id) REFERENCES public.tax(id) ON DELETE CASCADE;


--
-- Name: record_templates record_templates_ar_ap_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_ar_ap_chart_id_fkey FOREIGN KEY (ar_ap_chart_id) REFERENCES public.chart(id) ON DELETE SET NULL;


--
-- Name: record_templates record_templates_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.currencies(id) ON DELETE CASCADE;


--
-- Name: record_templates record_templates_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id) ON DELETE SET NULL;


--
-- Name: record_templates record_templates_department_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_department_id_fkey FOREIGN KEY (department_id) REFERENCES public.department(id) ON DELETE SET NULL;


--
-- Name: record_templates record_templates_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id) ON DELETE SET NULL;


--
-- Name: record_templates record_templates_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id) ON DELETE SET NULL;


--
-- Name: record_templates record_templates_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.record_templates
    ADD CONSTRAINT record_templates_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.vendor(id) ON DELETE SET NULL;


--
-- Name: requirement_spec_item_dependencies requirement_spec_item_dependencies_depended_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_item_dependencies
    ADD CONSTRAINT requirement_spec_item_dependencies_depended_item_id_fkey FOREIGN KEY (depended_item_id) REFERENCES public.requirement_spec_items(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_item_dependencies requirement_spec_item_dependencies_depending_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_item_dependencies
    ADD CONSTRAINT requirement_spec_item_dependencies_depending_item_id_fkey FOREIGN KEY (depending_item_id) REFERENCES public.requirement_spec_items(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_items requirement_spec_items_acceptance_status_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_acceptance_status_id_fkey FOREIGN KEY (acceptance_status_id) REFERENCES public.requirement_spec_acceptance_statuses(id);


--
-- Name: requirement_spec_items requirement_spec_items_complexity_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_complexity_id_fkey FOREIGN KEY (complexity_id) REFERENCES public.requirement_spec_complexities(id);


--
-- Name: requirement_spec_items requirement_spec_items_order_part_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_order_part_id_fkey FOREIGN KEY (order_part_id) REFERENCES public.parts(id) ON DELETE SET NULL;


--
-- Name: requirement_spec_items requirement_spec_items_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.requirement_spec_items(id);


--
-- Name: requirement_spec_items requirement_spec_items_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_items requirement_spec_items_risk_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_items
    ADD CONSTRAINT requirement_spec_items_risk_id_fkey FOREIGN KEY (risk_id) REFERENCES public.requirement_spec_risks(id);


--
-- Name: requirement_spec_orders requirement_spec_orders_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders
    ADD CONSTRAINT requirement_spec_orders_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.oe(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_orders requirement_spec_orders_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders
    ADD CONSTRAINT requirement_spec_orders_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_orders requirement_spec_orders_version_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_orders
    ADD CONSTRAINT requirement_spec_orders_version_id_fkey FOREIGN KEY (version_id) REFERENCES public.requirement_spec_versions(id) ON DELETE SET NULL;


--
-- Name: requirement_spec_parts requirement_spec_parts_part_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_parts
    ADD CONSTRAINT requirement_spec_parts_part_id_fkey FOREIGN KEY (part_id) REFERENCES public.parts(id);


--
-- Name: requirement_spec_parts requirement_spec_parts_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_parts
    ADD CONSTRAINT requirement_spec_parts_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_parts requirement_spec_parts_unit_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_parts
    ADD CONSTRAINT requirement_spec_parts_unit_id_fkey FOREIGN KEY (unit_id) REFERENCES public.units(id);


--
-- Name: requirement_spec_pictures requirement_spec_pictures_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_pictures
    ADD CONSTRAINT requirement_spec_pictures_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_pictures requirement_spec_pictures_text_block_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_pictures
    ADD CONSTRAINT requirement_spec_pictures_text_block_id_fkey FOREIGN KEY (text_block_id) REFERENCES public.requirement_spec_text_blocks(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_text_blocks requirement_spec_text_blocks_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_text_blocks
    ADD CONSTRAINT requirement_spec_text_blocks_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_versions requirement_spec_versions_requirement_spec_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_versions
    ADD CONSTRAINT requirement_spec_versions_requirement_spec_id_fkey FOREIGN KEY (requirement_spec_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_spec_versions requirement_spec_versions_working_copy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_spec_versions
    ADD CONSTRAINT requirement_spec_versions_working_copy_id_fkey FOREIGN KEY (working_copy_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: requirement_specs requirement_specs_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customer(id);


--
-- Name: requirement_specs requirement_specs_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project(id);


--
-- Name: requirement_specs requirement_specs_status_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_status_id_fkey FOREIGN KEY (status_id) REFERENCES public.requirement_spec_statuses(id);


--
-- Name: requirement_specs requirement_specs_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_type_id_fkey FOREIGN KEY (type_id) REFERENCES public.requirement_spec_types(id);


--
-- Name: requirement_specs requirement_specs_working_copy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.requirement_specs
    ADD CONSTRAINT requirement_specs_working_copy_id_fkey FOREIGN KEY (working_copy_id) REFERENCES public.requirement_specs(id) ON DELETE CASCADE;


--
-- Name: sepa_export sepa_export_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sepa_export
    ADD CONSTRAINT sepa_export_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: sepa_export_message_ids sepa_export_message_ids_sepa_export_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.sepa_export_message_ids
    ADD CONSTRAINT sepa_export_message_ids_sepa_export_id_fkey FOREIGN KEY (sepa_export_id) REFERENCES public.sepa_export(id) ON DELETE CASCADE;


--
-- Name: shop_images shop_images_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_images
    ADD CONSTRAINT shop_images_file_id_fkey FOREIGN KEY (file_id) REFERENCES public.files(id) ON DELETE CASCADE;


--
-- Name: shop_order_items shop_order_items_shop_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_order_items
    ADD CONSTRAINT shop_order_items_shop_order_id_fkey FOREIGN KEY (shop_order_id) REFERENCES public.shop_orders(id) ON DELETE CASCADE;


--
-- Name: shop_parts shop_parts_part_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_parts
    ADD CONSTRAINT shop_parts_part_id_fkey FOREIGN KEY (part_id) REFERENCES public.parts(id);


--
-- Name: shop_parts shop_parts_shop_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.shop_parts
    ADD CONSTRAINT shop_parts_shop_id_fkey FOREIGN KEY (shop_id) REFERENCES public.shops(id);


--
-- Name: stocktakings stocktakings_bin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_bin_id_fkey FOREIGN KEY (bin_id) REFERENCES public.bin(id);


--
-- Name: stocktakings stocktakings_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: stocktakings stocktakings_inventory_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_inventory_id_fkey FOREIGN KEY (inventory_id) REFERENCES public.inventory(id);


--
-- Name: stocktakings stocktakings_parts_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_parts_id_fkey FOREIGN KEY (parts_id) REFERENCES public.parts(id);


--
-- Name: stocktakings stocktakings_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stocktakings
    ADD CONSTRAINT stocktakings_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.warehouse(id);


--
-- Name: tax tax_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tax
    ADD CONSTRAINT tax_chart_id_fkey FOREIGN KEY (chart_id) REFERENCES public.chart(id);


--
-- Name: tax tax_skonto_purchase_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tax
    ADD CONSTRAINT tax_skonto_purchase_chart_id_fkey FOREIGN KEY (skonto_purchase_chart_id) REFERENCES public.chart(id);


--
-- Name: tax tax_skonto_sales_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tax
    ADD CONSTRAINT tax_skonto_sales_chart_id_fkey FOREIGN KEY (skonto_sales_chart_id) REFERENCES public.chart(id);


--
-- Name: taxkeys taxkeys_chart_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxkeys
    ADD CONSTRAINT taxkeys_chart_id_fkey FOREIGN KEY (chart_id) REFERENCES public.chart(id);


--
-- Name: taxkeys taxkeys_tax_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxkeys
    ADD CONSTRAINT taxkeys_tax_id_fkey FOREIGN KEY (tax_id) REFERENCES public.tax(id);


--
-- Name: taxzone_charts taxzone_charts_buchungsgruppen_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts
    ADD CONSTRAINT taxzone_charts_buchungsgruppen_id_fkey FOREIGN KEY (buchungsgruppen_id) REFERENCES public.buchungsgruppen(id);


--
-- Name: taxzone_charts taxzone_charts_expense_accno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts
    ADD CONSTRAINT taxzone_charts_expense_accno_id_fkey FOREIGN KEY (expense_accno_id) REFERENCES public.chart(id);


--
-- Name: taxzone_charts taxzone_charts_income_accno_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts
    ADD CONSTRAINT taxzone_charts_income_accno_id_fkey FOREIGN KEY (income_accno_id) REFERENCES public.chart(id);


--
-- Name: taxzone_charts taxzone_charts_taxzone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.taxzone_charts
    ADD CONSTRAINT taxzone_charts_taxzone_id_fkey FOREIGN KEY (taxzone_id) REFERENCES public.tax_zones(id);


--
-- Name: todo_user_config todo_user_config_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.todo_user_config
    ADD CONSTRAINT todo_user_config_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.employee(id);


--
-- Name: translation translation_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.translation
    ADD CONSTRAINT translation_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: units_language units_language_language_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units_language
    ADD CONSTRAINT units_language_language_id_fkey FOREIGN KEY (language_id) REFERENCES public.language(id);


--
-- Name: units_language units_language_unit_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.units_language
    ADD CONSTRAINT units_language_unit_fkey FOREIGN KEY (unit) REFERENCES public.units(name);


--
-- Name: report_headings report_headings_category_id_fkey; Type: FK CONSTRAINT; Schema: tax; Owner: postgres
--

ALTER TABLE ONLY tax.report_headings
    ADD CONSTRAINT report_headings_category_id_fkey FOREIGN KEY (category_id) REFERENCES tax.report_categories(id);


--
-- Name: report_variables report_variables_heading_id_fkey; Type: FK CONSTRAINT; Schema: tax; Owner: postgres
--

ALTER TABLE ONLY tax.report_variables
    ADD CONSTRAINT report_variables_heading_id_fkey FOREIGN KEY (heading_id) REFERENCES tax.report_headings(id);


--
-- PostgreSQL database dump complete
--

