storemw-core-api 1.0.171 → 1.0.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2611 +1,137 @@
1
1
  generator client {
2
- provider = "prisma-client-js"
3
- binaryTargets = ["native", "windows", "debian-openssl-1.1.x", "debian-openssl-3.0.x", "rhel-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
2
+ provider = "prisma-client-js"
4
3
  }
5
4
 
6
5
  datasource db {
7
6
  provider = "postgresql"
8
7
  url = env("DATABASE_URL")
9
- schemas = ["public"]
10
8
  }
11
9
 
12
- model accounts {
13
- account_id BigInt @id(map: "cl_accounts_pkey") @default(autoincrement())
14
- name String @db.VarChar(128)
15
- createdatetime DateTime? @db.Timestamp(6)
16
- createuserid BigInt @default(0)
17
- updatedatetime DateTime? @db.Timestamp(6)
18
- updateuserid BigInt @default(0)
19
- isdelete Boolean? @default(false)
20
- istrash Boolean? @default(false)
21
- accountid BigInt @default(0)
22
- business_id BigInt?
23
- status Boolean @default(false)
24
- owner_user_id BigInt @default(0)
25
- account_code String? @db.VarChar(128)
26
- areas areas[]
27
- branches branches[]
28
- businesses businesses[]
29
- countries countries[]
30
- states states[]
31
-
32
- @@schema("public")
33
- }
34
-
35
- model administrators {
36
- administrator_id BigInt @id(map: "cl_administrators_pkey") @default(autoincrement())
37
- user_id BigInt @default(0)
38
- createdatetime DateTime? @db.Timestamp(6)
39
- createuserid BigInt @default(0)
40
- updatedatetime DateTime? @db.Timestamp(6)
41
- updateuserid BigInt @default(0)
42
- isdelete Boolean? @default(false)
43
- istrash Boolean? @default(false)
44
- accountid BigInt @default(0)
45
- is_owner Boolean @default(false)
46
-
47
- @@schema("public")
48
- }
49
-
50
- model businesses {
51
- business_id BigInt @id(map: "cl_businesses_pkey") @default(autoincrement())
52
- company_name String? @db.VarChar(256)
53
- registration_number String? @db.VarChar(256)
54
- website String? @db.VarChar(256)
55
- email String? @db.VarChar(256)
56
- company_contact String? @db.VarChar(256)
57
- address_1 String? @db.VarChar(256)
58
- address_2 String? @db.VarChar(256)
59
- state_id BigInt? @default(0)
60
- area_id BigInt? @default(0)
61
- country_id BigInt? @default(0)
62
- postcode String? @db.VarChar(64)
63
- createdatetime DateTime? @db.Timestamp(6)
64
- createuserid BigInt @default(0)
65
- updatedatetime DateTime? @db.Timestamp(6)
66
- updateuserid BigInt @default(0)
67
- isdelete Boolean? @default(false)
68
- istrash Boolean? @default(false)
69
- accountid BigInt @default(0)
70
- status Boolean @default(true)
71
- accounts accounts @relation(fields: [accountid], references: [account_id], onDelete: SetNull, onUpdate: NoAction, map: "businesses_accounts_fk")
72
- users_businesses_createuseridTousers users @relation("businesses_createuseridTousers", fields: [createuserid], references: [user_id], onDelete: SetNull, onUpdate: NoAction, map: "businesses_users_createuserid_fk")
73
- users_businesses_updateuseridTousers users @relation("businesses_updateuseridTousers", fields: [updateuserid], references: [user_id], onDelete: SetNull, onUpdate: NoAction, map: "businesses_users_updateuserid_fk")
74
-
75
- @@schema("public")
76
- }
77
-
78
- /// This model has constraints using non-default deferring rules and requires additional setup for migrations. Visit https://pris.ly/d/constraint-deferring for more info.
79
- model customers {
80
- customer_id BigInt @id(map: "cl_customers_pkey") @default(autoincrement())
81
- user_id BigInt @default(0)
82
- company_name String? @db.VarChar(100)
83
- code String? @db.VarChar(64)
84
- reg_no String? @db.VarChar(20)
85
- gst_no String? @db.VarChar(32)
86
- remark String? @db.VarChar(256)
87
- createdatetime DateTime? @db.Timestamp(6)
88
- createuserid BigInt @default(0)
89
- updatedatetime DateTime? @db.Timestamp(6)
90
- updateuserid BigInt @default(0)
91
- isdelete Boolean? @default(false)
92
- istrash Boolean? @default(false)
93
- accountid BigInt @default(0)
94
- account_code String? @db.VarChar(256)
95
- tax_identification_no String? @db.VarChar(256)
96
- tax_registration_no String? @db.VarChar(256)
97
- secondary_reg_no String? @db.VarChar(256)
98
-
99
- @@index([createuserid], map: "idx_cl_customers_ax_createuserid")
100
- @@index([customer_id, createuserid], map: "idx_cl_customers_ax_createuserid2")
101
- @@index([isdelete], map: "idx_cl_customers_ax_isdelete")
102
- @@index([updateuserid], map: "idx_cl_customers_ax_updateuserid")
103
- @@index([customer_id, updateuserid], map: "idx_cl_customers_ax_updateuserid2")
104
- @@index([user_id], map: "idx_cl_customers_user_id")
105
- @@index([createuserid], map: "idx_customer_ax_createuserid")
106
- @@index([updateuserid], map: "idx_customer_ax_updateuserid")
107
- @@index([customer_id, user_id], map: "idx_customer_user_id")
108
- @@index([user_id], map: "idx_customer_user_id2")
109
- @@index([code], map: "idx_customers_code")
110
- @@index([customer_id], map: "idx_customers_customer_id")
111
- @@schema("public")
112
- }
113
-
114
- model users {
115
- user_id BigInt @id(map: "cl_users_pkey") @default(autoincrement())
116
- login_username String? @db.VarChar(30)
117
- login_password String?
118
- user_type String? @db.VarChar(255)
119
- firstname String? @db.VarChar(50)
120
- lastname String? @db.VarChar(50)
121
- email String? @db.VarChar(256)
122
- address String? @db.VarChar(512)
123
- status Boolean? @default(true)
124
- createdatetime DateTime? @db.Timestamp(6)
125
- createuserid BigInt @default(0)
126
- updatedatetime DateTime? @db.Timestamp(6)
127
- updateuserid BigInt @default(0)
128
- isdelete Boolean? @default(false)
129
- istrash Boolean? @default(false)
130
- accountid BigInt @default(0)
131
- contact_country_code Int @default(0)
132
- contact_phone_number String? @db.VarChar(40)
133
- parent_user_id BigInt @default(0)
134
- areas_areas_createuseridTousers areas[] @relation("areas_createuseridTousers")
135
- areas_areas_updateuseridTousers areas[] @relation("areas_updateuseridTousers")
136
- branches_branches_createuseridTousers branches[] @relation("branches_createuseridTousers")
137
- branches_branches_updateuseridTousers branches[] @relation("branches_updateuseridTousers")
138
- branches_branches_user_idTousers branches[] @relation("branches_user_idTousers")
139
- businesses_businesses_createuseridTousers businesses[] @relation("businesses_createuseridTousers")
140
- businesses_businesses_updateuseridTousers businesses[] @relation("businesses_updateuseridTousers")
141
- countries_countries_createuseridTousers countries[] @relation("countries_createuseridTousers")
142
- countries_countries_updateuseridTousers countries[] @relation("countries_updateuseridTousers")
143
- states_states_createuseridTousers states[] @relation("states_createuseridTousers")
144
- states_states_updateuseridTousers states[] @relation("states_updateuseridTousers")
145
-
146
- @@schema("public")
147
- }
148
-
149
- model areas {
150
- area_id BigInt @id(map: "cl_areas_pkey") @default(autoincrement())
151
- area_name String @db.VarChar(30)
152
- state_id BigInt @default(1)
153
- postcode_string String?
154
- status Boolean? @default(false)
155
- createdatetime DateTime? @db.Timestamp(6)
156
- createuserid BigInt @default(0)
157
- updatedatetime DateTime? @db.Timestamp(6)
158
- updateuserid BigInt @default(0)
159
- isdelete Boolean? @default(false)
160
- istrash Boolean? @default(false)
161
- accountid BigInt @default(0)
162
- accounts accounts @relation(fields: [accountid], references: [account_id], onDelete: NoAction, onUpdate: NoAction, map: "account")
163
- users_areas_createuseridTousers users @relation("areas_createuseridTousers", fields: [createuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "creator")
164
- users_areas_updateuseridTousers users @relation("areas_updateuseridTousers", fields: [updateuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "updater")
165
- branches branches[]
166
-
167
- @@schema("public")
168
- }
169
-
170
- model countries {
171
- country_id BigInt @id(map: "cl_countries_pkey") @default(autoincrement())
172
- sort_name String @db.VarChar(3)
173
- country_name String @db.VarChar(150)
174
- phone_code Int @default(0)
175
- status Boolean @default(false)
176
- createdatetime DateTime? @db.Timestamp(6)
177
- createuserid BigInt @default(0)
178
- updatedatetime DateTime? @db.Timestamp(6)
179
- updateuserid BigInt @default(0)
180
- isdelete Boolean? @default(false)
181
- istrash Boolean? @default(false)
182
- accountid BigInt @default(0)
183
- branches branches[]
184
- accounts accounts @relation(fields: [accountid], references: [account_id], onDelete: NoAction, onUpdate: NoAction, map: "account")
185
- users_countries_createuseridTousers users @relation("countries_createuseridTousers", fields: [createuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "creator")
186
- users_countries_updateuseridTousers users @relation("countries_updateuseridTousers", fields: [updateuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "updater")
187
-
188
- @@schema("public")
189
- }
190
-
191
- model states {
192
- state_id BigInt @id(map: "cl_states_pkey") @default(autoincrement())
193
- state_name String @db.VarChar(30)
194
- country_id BigInt @default(1)
195
- createdatetime DateTime? @db.Timestamp(6)
196
- createuserid BigInt @default(0)
197
- updatedatetime DateTime? @db.Timestamp(6)
198
- updateuserid BigInt @default(0)
199
- isdelete Boolean? @default(false)
200
- istrash Boolean? @default(false)
201
- accountid BigInt @default(0)
202
- status Boolean? @default(false)
203
- branches branches[]
204
- accounts accounts @relation(fields: [accountid], references: [account_id], onDelete: NoAction, onUpdate: NoAction, map: "account")
205
- users_states_createuseridTousers users @relation("states_createuseridTousers", fields: [createuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "creator")
206
- users_states_updateuseridTousers users @relation("states_updateuseridTousers", fields: [updateuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "updater")
207
-
208
- @@schema("public")
209
- }
210
-
211
- model group_owners {
212
- group_owner_id BigInt @id(map: "cl_group_owners_pkey") @default(autoincrement())
213
- group_id BigInt @default(0)
214
- user_id BigInt @default(0)
215
- type String @db.VarChar(32)
216
- createdatetime DateTime? @db.Timestamp(6)
217
- createuserid BigInt @default(0)
218
- updatedatetime DateTime? @db.Timestamp(6)
219
- updateuserid BigInt @default(0)
220
- isdelete Boolean? @default(false)
221
- istrash Boolean? @default(false)
222
- accountid BigInt @default(0)
223
-
224
- @@index([isdelete], map: "ids_group_owners_ax_isdelete")
225
- @@index([group_id], map: "idx_group_owners_group_id")
226
- @@index([group_id, user_id, isdelete], map: "idx_group_owners_group_id_user_id")
227
- @@index([user_id], map: "idx_group_owners_user_id")
228
- @@schema("public")
229
- }
230
-
231
- model groups {
232
- group_id BigInt @id(map: "cl_groups_pkey") @default(autoincrement())
233
- group_label String? @db.VarChar(30)
234
- group_description String? @db.VarChar(255)
235
- group_type String? @db.VarChar(255)
236
- status Int? @default(0) @db.SmallInt
237
- createdatetime DateTime? @db.Timestamp(6)
238
- createuserid BigInt @default(0)
239
- updatedatetime DateTime? @db.Timestamp(6)
240
- updateuserid BigInt @default(0)
241
- isdelete Boolean? @default(false)
242
- istrash Boolean? @default(false)
243
- accountid BigInt @default(0)
244
-
245
- @@schema("public")
246
- }
247
-
248
- model user_status {
249
- user_status_id BigInt @id(map: "cl_user_status_pkey") @default(autoincrement())
250
- user_id BigInt @default(0)
251
- member_id BigInt @default(0)
252
- type String @db.VarChar(32)
253
- status Int @default(0) @db.SmallInt
254
- createdatetime DateTime? @db.Timestamp(6)
255
- createuserid BigInt @default(0)
256
- updatedatetime DateTime? @db.Timestamp(6)
257
- updateuserid BigInt @default(0)
258
- isdelete Boolean? @default(false)
259
- istrash Boolean? @default(false)
260
- accountid BigInt @default(0)
261
-
262
- @@schema("public")
263
- }
264
-
265
- model locations {
266
- location_id BigInt @id(map: "cl_locations_pkey") @default(autoincrement())
267
- location_name String @db.VarChar(255)
268
- address_1 String? @db.VarChar(255)
269
- address_2 String? @db.VarChar(255)
270
- postcode String? @db.VarChar(255)
271
- state_id BigInt @default(0)
272
- area String? @db.VarChar(255)
273
- country_id BigInt @default(0)
274
- person_name String? @db.VarChar(255)
275
- person_contact String? @db.VarChar(255)
276
- person_email String? @db.VarChar(256)
277
- status Boolean @default(false)
278
- createdatetime DateTime? @db.Timestamp(6)
279
- createuserid BigInt @default(0)
280
- updatedatetime DateTime? @db.Timestamp(6)
281
- updateuserid BigInt @default(0)
282
- isdelete Boolean? @default(false)
283
- istrash Boolean? @default(false)
284
- accountid BigInt @default(0)
285
- is_default Boolean? @default(false)
286
- location_type String? @db.VarChar(255)
287
- area_id BigInt?
288
- location_code String? @db.VarChar
289
-
290
- @@schema("public")
291
- }
292
-
293
- model user_props {
294
- user_prop_id BigInt @id(map: "cl_user_props_pkey") @default(autoincrement())
295
- user_id BigInt?
296
- type String? @db.VarChar(256)
297
- props_value String? @db.VarChar(256)
298
- props_id BigInt @default(0)
299
- props_numeric Decimal @default(0.0000) @db.Decimal(20, 4)
300
- props_timestamp DateTime? @db.Timestamp(6)
301
- createdatetime DateTime? @db.Timestamp(6)
302
- createuserid BigInt @default(0)
303
- updatedatetime DateTime? @db.Timestamp(6)
304
- updateuserid BigInt @default(0)
305
- isdelete Boolean? @default(false)
306
- istrash Boolean? @default(false)
307
- accountid BigInt @default(0)
308
- props_integer BigInt?
309
-
310
- @@index([isdelete], map: "ids_user_props_is_delete")
311
- @@index([props_value, props_id, props_numeric, props_timestamp], map: "idx_cl_user_props_all_value2")
312
- @@index([user_id], map: "idx_cl_user_props_user_id")
313
- @@index([user_id], map: "idx_user_props_user_id")
314
- @@schema("public")
315
- }
316
-
317
- model location_racks {
318
- location_rack_id BigInt @id(map: "cl_location_racks_pkey") @default(autoincrement())
319
- location_id BigInt @default(0)
320
- rack_name String @db.VarChar(255)
321
- rack_sequence BigInt?
322
- status Boolean @default(false)
323
- createdatetime DateTime? @db.Timestamp(6)
324
- createuserid BigInt @default(0)
325
- updatedatetime DateTime? @db.Timestamp(6)
326
- updateuserid BigInt @default(0)
327
- isdelete Boolean? @default(false)
328
- istrash Boolean? @default(false)
329
- accountid BigInt @default(0)
330
- is_default Boolean? @default(false)
331
- rack_type String? @db.VarChar(255)
332
-
333
- @@schema("public")
334
- }
335
-
336
- model location_slots {
337
- location_slot_id BigInt @id(map: "cl_location_slots_pkey") @default(autoincrement())
338
- rack_id BigInt @default(0)
339
- slot_name String @db.VarChar(255)
340
- slot_sequence Int? @default(0)
341
- status Boolean @default(false)
342
- createdatetime DateTime? @db.Timestamp(6)
343
- createuserid BigInt @default(0)
344
- updatedatetime DateTime? @db.Timestamp(6)
345
- updateuserid BigInt @default(0)
346
- isdelete Boolean? @default(false)
347
- istrash Boolean? @default(false)
348
- accountid BigInt @default(0)
349
- is_default Boolean? @default(false)
350
-
351
- @@schema("public")
352
- }
353
-
354
- model branch_users {
355
- branch_user_id BigInt @id(map: "branch_user_pkey") @unique(map: "cl_branch_users_customer_id_uindex") @default(autoincrement())
356
- user_id BigInt?
357
- createdatetime DateTime? @db.Timestamp(6)
358
- createuserid BigInt?
359
- updatedatetime DateTime? @db.Timestamp(6)
360
- updateuserid BigInt?
361
- isdelete Boolean?
362
- istrash Boolean?
363
- accountid BigInt?
364
- parent_user_id BigInt?
365
-
366
- @@schema("public")
367
- }
368
-
369
- model branches {
370
- branch_id BigInt @id(map: "cl_branches_pkey") @default(autoincrement())
371
- user_id BigInt @default(0)
372
- type String? @db.VarChar(32)
373
- branch_name String? @db.VarChar(128)
374
- branch_code String? @db.VarChar(128)
375
- address_1 String? @db.VarChar(256)
376
- address_2 String? @db.VarChar(256)
377
- state_id BigInt? @default(0)
378
- area String? @db.VarChar(255)
379
- country_id BigInt? @default(0)
380
- postcode String? @db.VarChar(64)
381
- pic_name String? @db.VarChar(255)
382
- pic_contact String? @db.VarChar(255)
383
- pic_email String? @db.VarChar(255)
384
- remark String? @db.VarChar(256)
385
- is_hq Int @default(0) @db.SmallInt
386
- createdatetime DateTime? @db.Timestamp(6)
387
- createuserid BigInt @default(0)
388
- updatedatetime DateTime? @db.Timestamp(6)
389
- updateuserid BigInt @default(0)
390
- isdelete Boolean? @default(false)
391
- istrash Boolean? @default(false)
392
- accountid BigInt @default(0)
393
- area_id BigInt?
394
- branch_contact String? @db.VarChar
395
- branch_email String? @db.VarChar
396
- status Int? @db.SmallInt
397
- accounts accounts @relation(fields: [accountid], references: [account_id], onDelete: NoAction, onUpdate: NoAction, map: "account")
398
- areas areas? @relation(fields: [area_id], references: [area_id], onDelete: NoAction, onUpdate: NoAction, map: "area")
399
- countries countries? @relation(fields: [country_id], references: [country_id], onDelete: NoAction, onUpdate: NoAction, map: "country")
400
- users_branches_createuseridTousers users @relation("branches_createuseridTousers", fields: [createuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "creator")
401
- states states? @relation(fields: [state_id], references: [state_id], onDelete: NoAction, onUpdate: NoAction, map: "state")
402
- users_branches_updateuseridTousers users @relation("branches_updateuseridTousers", fields: [updateuserid], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "updater")
403
- users_branches_user_idTousers users @relation("branches_user_idTousers", fields: [user_id], references: [user_id], onDelete: NoAction, onUpdate: NoAction, map: "user")
404
-
405
- @@index([branch_id, accountid, isdelete], map: "idx_cl_branches_account_isdelete")
406
- @@schema("public")
407
- }
408
-
409
- model brands {
410
- brand_id BigInt @id @default(autoincrement())
411
- createdatetime DateTime? @db.Timestamptz(6)
412
- createuserid BigInt @default(0)
413
- updatedatetime DateTime? @db.Timestamptz(6)
414
- updateuserid BigInt @default(0)
415
- isdelete Boolean? @default(false)
416
- istrash Boolean? @default(false)
417
- accountid BigInt @default(0)
418
- brand_name String? @db.VarChar(128)
419
- brand_code String @default(dbgenerated("0")) @db.VarChar(128)
420
- description String? @db.VarChar(256)
421
- status Boolean?
422
-
423
- @@schema("public")
424
- }
425
-
426
- model categories {
427
- category_id BigInt @id @default(autoincrement())
428
- createdatetime DateTime? @db.Timestamptz(6)
429
- createuserid BigInt @default(0)
430
- updatedatetime DateTime? @db.Timestamptz(6)
431
- updateuserid BigInt @default(0)
432
- isdelete Boolean? @default(false)
433
- istrash Boolean? @default(false)
434
- accountid BigInt @default(0)
435
- category_code String @default(dbgenerated("0")) @db.VarChar(128)
436
- parent_category_id BigInt @default(0)
437
- category_name String? @db.VarChar(128)
438
- description String? @db.VarChar(256)
439
- status Boolean?
440
-
441
- @@schema("public")
442
- }
443
-
444
- model document_amounts {
445
- document_amount_id BigInt @id @default(autoincrement())
446
- createdatetime DateTime? @db.Timestamptz(6)
447
- createuserid BigInt @default(0)
448
- updatedatetime DateTime? @db.Timestamptz(6)
449
- updateuserid BigInt @default(0)
450
- isdelete Boolean? @default(false)
451
- istrash Boolean? @default(false)
452
- accountid BigInt @default(0)
453
- document_id BigInt @default(0)
454
- type String @db.VarChar(32)
455
- sub_amount Decimal @default(0.0000) @db.Decimal(10, 4)
456
- total_amount Decimal @default(0.0000) @db.Decimal(10, 4)
457
-
458
- @@schema("public")
459
- }
460
-
461
- model document_injection_fields {
462
- document_injection_field_id BigInt @id(map: "cl_document_injection_fields_pkey") @default(autoincrement())
463
- field_module String? @db.VarChar(200)
464
- field_ref String? @db.VarChar(200)
465
- document_id BigInt @default(0)
466
- document_item_id BigInt @default(0)
467
- document_doc_id BigInt @default(0)
468
- createdatetime DateTime? @db.Timestamp(6)
469
- createuserid BigInt @default(0)
470
- updatedatetime DateTime? @db.Timestamp(6)
471
- updateuserid BigInt @default(0)
472
- isdelete Boolean? @default(false)
473
- istrash Boolean? @default(false)
474
- accountid BigInt @default(0)
475
- doc_do_pack_qty2_bk_39 BigInt @default(0)
476
- doc_do_pack_qty2 BigInt? @default(0)
477
- doci_do_pack_item_qty BigInt? @default(0)
478
- doc_do_pack_item_qty BigInt? @default(0)
479
- doc_so_test String? @default("") @db.VarChar(256)
480
- doci_so_testitem String? @default("") @db.VarChar(256)
481
- doc_so_pack_qty2 BigInt? @default(0)
482
- doc_do_aaaa BigInt? @default(0)
483
- doc_do_remark_ids String? @default("") @db.VarChar(256)
484
- doc_do_remark_id String? @default("") @db.VarChar(256)
485
- doci_ir_batch_no String? @default("") @db.VarChar(256)
486
- doci_ir_expiry_date String? @default("") @db.VarChar(256)
487
- doci_ir_production_date String? @default("") @db.VarChar(256)
488
- doc_scn_is_adhoc BigInt? @default(0)
489
- doc_scn_shipment_address String? @default("")
490
- doci_scn_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
491
- doci_scn_is_bulk BigInt? @default(0)
492
- doc_do_is_adhoc BigInt? @default(0)
493
- doc_do_shipment_address String? @default("")
494
- doci_do_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
495
- doci_do_is_bulk BigInt? @default(0)
496
- doc_cs_is_adhoc BigInt? @default(0)
497
- doc_cs_shipment_address String? @default("")
498
- doci_cs_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
499
- doci_cs_is_bulk BigInt? @default(0)
500
- doc_rdo_is_adhoc BigInt? @default(0)
501
- doc_rdo_shipment_address String? @default("")
502
- doci_rdo_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
503
- doci_rdo_is_bulk BigInt? @default(0)
504
- doc_pr_is_adhoc BigInt? @default(0)
505
- doc_pr_shipment_address String? @default("")
506
- doci_pr_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
507
- doci_pr_is_bulk BigInt? @default(0)
508
- doc_sdn_is_adhoc BigInt? @default(0)
509
- doc_sdn_shipment_address String? @default("")
510
- doci_sdn_existing_mp_quantity Decimal? @default(0) @db.Decimal(20, 4)
511
- doci_sdn_is_bulk BigInt? @default(0)
512
- removed_doci_do_4sdfsdfd7s DateTime? @db.Date
513
- doc_trp_samepltrip_date String?
514
- doc_trp_sampletrip_no BigInt?
515
- doci_trp_sampletrip_item_no BigInt?
516
- doci_trp_samepltrip_item_date String?
517
-
518
- @@index([document_doc_id], map: "idx_document_injection_fields_document_doc_id")
519
- @@index([document_id], map: "idx_document_injection_fields_document_id")
520
- @@index([document_item_id], map: "idx_document_injection_fields_document_item_id")
521
- @@index([document_id, doc_cs_is_adhoc], map: "idx_inj_fields_cash_sales_doc_cs_is_adhoc")
522
- @@index([document_item_id, doci_cs_existing_mp_quantity], map: "idx_inj_fields_cash_sales_doci_cs_existing_mp_quantity")
523
- @@index([document_item_id, doci_cs_is_bulk], map: "idx_inj_fields_cash_sales_doci_cs_is_bulk")
524
- @@index([document_id, doc_do_is_adhoc], map: "idx_inj_fields_delivery_doc_do_is_adhoc")
525
- @@index([document_item_id, doci_do_existing_mp_quantity], map: "idx_inj_fields_delivery_doci_do_existing_mp_quantity")
526
- @@index([document_item_id, doci_do_is_bulk], map: "idx_inj_fields_delivery_doci_do_is_bulk")
527
- @@index([document_item_id, doci_ir_batch_no], map: "idx_inj_fields_item_receive_doci_ir_batch_no")
528
- @@index([document_item_id, doci_ir_expiry_date], map: "idx_inj_fields_item_receive_doci_ir_expiry_date")
529
- @@index([document_item_id, doci_ir_production_date], map: "idx_inj_fields_item_receive_doci_ir_production_date")
530
- @@index([document_id, doc_rdo_is_adhoc], map: "idx_inj_fields_replacement_delivery_doc_rdo_is_adhoc")
531
- @@index([document_item_id, doci_rdo_existing_mp_quantity], map: "idx_inj_fields_replacement_delivery_doci_rdo_existing_mp_quanti")
532
- @@index([document_item_id, doci_rdo_is_bulk], map: "idx_inj_fields_replacement_delivery_doci_rdo_is_bulk")
533
- @@index([document_id, doc_scn_is_adhoc], map: "idx_inj_fields_sales_credit_note_doc_scn_is_adhoc")
534
- @@index([document_item_id, doci_scn_existing_mp_quantity], map: "idx_inj_fields_sales_credit_note_doci_scn_existing_mp_quantity")
535
- @@index([document_item_id, doci_scn_is_bulk], map: "idx_inj_fields_sales_credit_note_doci_scn_is_bulk")
536
- @@index([document_id, doc_do_aaaa], map: "idx_inj_fields_delivery_doc_do_aaaa")
537
- @@index([document_id, doc_do_pack_item_qty], map: "idx_inj_fields_delivery_doc_do_pack_item_qty")
538
- @@index([document_id, doc_do_pack_qty2_bk_39], map: "idx_inj_fields_delivery_doc_do_pack_qty2")
539
- @@index([document_id, doc_do_remark_id], map: "idx_inj_fields_delivery_doc_do_remark_id")
540
- @@index([document_id, doc_do_remark_ids], map: "idx_inj_fields_delivery_doc_do_remark_ids")
541
- @@index([document_item_id, doci_do_pack_item_qty], map: "idx_inj_fields_delivery_doci_do_pack_item_qty")
542
- @@index([document_id, doc_pr_is_adhoc], map: "idx_inj_fields_purchase_return_doc_pr_is_adhoc")
543
- @@index([document_item_id, doci_pr_existing_mp_quantity], map: "idx_inj_fields_purchase_return_doci_pr_existing_mp_quantity")
544
- @@index([document_item_id, doci_pr_is_bulk], map: "idx_inj_fields_purchase_return_doci_pr_is_bulk")
545
- @@index([document_id, doc_sdn_is_adhoc], map: "idx_inj_fields_sales_debit_note_doc_sdn_is_adhoc")
546
- @@index([document_item_id, doci_sdn_existing_mp_quantity], map: "idx_inj_fields_sales_debit_note_doci_sdn_existing_mp_quantity")
547
- @@index([document_item_id, doci_sdn_is_bulk], map: "idx_inj_fields_sales_debit_note_doci_sdn_is_bulk")
548
- @@index([document_id, doc_so_pack_qty2], map: "idx_inj_fields_sales_doc_so_pack_qty2")
549
- @@index([document_id, doc_so_test], map: "idx_inj_fields_sales_doc_so_test")
550
- @@index([document_item_id, doci_so_testitem], map: "idx_inj_fields_sales_doci_so_testitem")
551
- @@schema("public")
552
- }
553
-
554
- model document_items {
555
- document_item_id BigInt @id(map: "cl_document_items_pkey") @default(autoincrement())
556
- document_id BigInt @default(0)
557
- item_id BigInt @default(0)
558
- item_name String? @db.VarChar(255)
559
- code String? @db.VarChar(256)
560
- description String? @db.VarChar(256)
561
- unit_amount Decimal? @default(0.0000) @db.Decimal(10, 4)
562
- quantity Decimal? @default(0.0000) @db.Decimal(10, 4)
563
- total_amount Decimal? @default(0.0000) @db.Decimal(20, 4)
564
- uom String? @db.VarChar(256)
565
- uom_id BigInt? @default(0)
566
- createdatetime DateTime? @db.Timestamp(6)
567
- createuserid BigInt @default(0)
568
- updatedatetime DateTime? @db.Timestamp(6)
569
- updateuserid BigInt @default(0)
570
- isdelete Boolean? @default(false)
571
- istrash Boolean? @default(false)
572
- accountid BigInt @default(0)
573
- document_doc_id BigInt?
574
-
575
- @@index([item_id], map: "cl_document_items_item_id_index")
576
- @@index([document_id], map: "ids_document_items_document_id")
577
- @@schema("public")
578
- }
579
-
580
- model document_payments {
581
- document_payment_id BigInt @id(map: "cl_document_payments_pkey") @default(autoincrement())
582
- payment_type String? @db.VarChar(128)
583
- payment_date DateTime? @db.Date
584
- payment_amount Decimal? @default(0.00) @db.Decimal(10, 2)
585
- receive_amount Decimal? @default(0.00) @db.Decimal(10, 2)
586
- document_id BigInt @default(0)
587
- type String? @db.VarChar(128)
588
- payment_action String? @db.VarChar(128)
589
- bank_name String? @db.VarChar(128)
590
- bank_account_name String? @db.VarChar(128)
591
- bank_account_no String? @db.VarChar(128)
592
- payment_reference String? @db.VarChar(256)
593
- payment_post_date DateTime? @db.Date
594
- createdatetime DateTime? @db.Timestamp(6)
595
- createuserid BigInt @default(0)
596
- updatedatetime DateTime? @db.Timestamp(6)
597
- updateuserid BigInt @default(0)
598
- isdelete Boolean? @default(false)
599
- istrash Boolean? @default(false)
600
- accountid BigInt @default(0)
601
-
602
- @@schema("public")
603
- }
604
-
605
- model document_profiles {
606
- document_profile_id BigInt @id(map: "cl_document_profiles_pkey") @default(autoincrement())
607
- user_id BigInt @default(0)
608
- document_id BigInt @default(0)
609
- type String @db.VarChar(32)
610
- code String? @db.VarChar(255)
611
- profile_name String? @db.VarChar(255)
612
- address_1 String? @db.VarChar(255)
613
- address_2 String? @db.VarChar(255)
614
- state_id BigInt? @default(0)
615
- postcode String? @db.VarChar(11)
616
- area String? @db.VarChar(255)
617
- country_id BigInt? @default(0)
618
- createdatetime DateTime? @db.Timestamp(6)
619
- createuserid BigInt @default(0)
620
- updatedatetime DateTime? @db.Timestamp(6)
621
- updateuserid BigInt @default(0)
622
- isdelete Boolean? @default(false)
623
- istrash Boolean? @default(false)
624
- accountid BigInt @default(0)
625
- user_branch_id BigInt?
626
- area_id BigInt?
627
- contact String? @db.VarChar(255)
628
- email String? @db.VarChar(255)
629
- name String? @db.VarChar(255)
630
- document_type String? @db.VarChar(128)
631
-
632
- @@index([country_id], map: "idx_document_profiles_country_id")
633
- @@index([state_id], map: "idx_document_profiles_state_id")
634
- @@schema("public")
635
- }
636
-
637
- model documents {
638
- document_id BigInt @id(map: "cl_documents_pkey") @default(autoincrement())
639
- doc_number String? @db.VarChar(32)
640
- doc_date DateTime? @db.Date
641
- doc_type String? @db.VarChar(32)
642
- doc_remark String? @db.VarChar(256)
643
- createdatetime DateTime? @db.Timestamp(6)
644
- createuserid BigInt @default(0)
645
- updatedatetime DateTime? @db.Timestamp(6)
646
- updateuserid BigInt @default(0)
647
- isdelete Boolean? @default(false)
648
- istrash Boolean? @default(false)
649
- accountid BigInt @default(0)
650
- doc_reference1_id BigInt? @default(0)
651
- doc_reference1_label String? @db.VarChar(256)
652
- doc_reference2_id BigInt? @default(0)
653
- doc_reference2_label String? @db.VarChar(256)
654
- location_id BigInt @default(0)
655
- subtotal_amount Decimal @default(0.0000) @db.Decimal(10, 4)
656
- discount_amount Decimal @default(0.0000) @db.Decimal(10, 4)
657
- tax_amount Decimal @default(0.0000) @db.Decimal(10, 4)
658
- rounding_amount Decimal @default(0.0000) @db.Decimal(10, 4)
659
- service_charge_amount Decimal @default(0.0000) @db.Decimal(10, 4)
660
- delivery_charge_amount Decimal @default(0.0000) @db.Decimal(10, 4)
661
- total_amount Decimal @default(0.0000) @db.Decimal(10, 4)
662
- grand_total_amount Decimal @default(0.0000) @db.Decimal(10, 4)
663
- paid_amount Decimal @default(0.0000) @db.Decimal(10, 4)
664
- balance_amount Decimal @default(0.0000) @db.Decimal(10, 4)
665
-
666
- @@index([document_id, doc_type], map: "cl_documents_document_id_doc_type_index")
667
- @@index([createdatetime], map: "idx_document_created_date")
668
- @@index([document_id, createuserid], map: "idx_document_createuserid")
669
- @@index([document_id, updateuserid], map: "idx_document_updateuserid")
670
- @@schema("public")
671
- }
672
-
673
- model files {
674
- file_id BigInt @id @default(autoincrement())
675
- createdatetime DateTime? @db.Timestamptz(6)
676
- createuserid BigInt @default(0)
677
- updatedatetime DateTime? @db.Timestamptz(6)
678
- updateuserid BigInt @default(0)
679
- isdelete Boolean? @default(false)
680
- istrash Boolean? @default(false)
681
- accountid BigInt @default(0)
682
- field_ref String @db.VarChar(255)
683
- field_module String @db.VarChar(255)
684
- content_type String? @db.VarChar(128)
685
- file_category_name String? @db.VarChar(128)
686
- tag_name String @db.VarChar(255)
687
- description String? @db.VarChar(256)
688
- remark String? @db.VarChar(256)
689
- asset_path String? @db.VarChar(256)
690
- asset_url String? @db.VarChar(256)
691
- thumbnail_url String? @db.VarChar(256)
692
- file_label String @db.VarChar(256)
693
- file_name String @db.VarChar(256)
694
- storage_provider_name String @db.VarChar(256)
695
- foldername_year Int @default(0)
696
- foldername_month Int @default(0)
697
- foldername_day Int @default(0)
698
- file_size_bytes BigInt @default(0)
699
- file_duration_seconds Decimal @default(0) @db.Decimal(10, 3)
700
- file_compress_format String? @db.VarChar(128)
701
- input_type String? @db.VarChar(128)
702
- input_file_size_bytes BigInt? @default(0)
703
- input_file_name String? @db.VarChar(128)
704
- batch_code String? @db.VarChar(128)
705
- refer_id_1 BigInt @default(0)
706
- refer_label_1 String? @db.VarChar(128)
707
- refer_id_2 BigInt @default(0)
708
- refer_label_2 String? @db.VarChar(128)
709
-
710
- @@schema("public")
711
- }
712
-
713
- model injection_fields {
714
- injection_field_id BigInt @id(map: "cl_injection_field_definations_pkey") @default(autoincrement())
715
- field_module String? @db.VarChar(200)
716
- field_ref String? @db.VarChar(200)
717
- field_key String? @db.VarChar(256)
718
- field_name String? @db.VarChar(256)
719
- field_type String? @db.VarChar(256)
720
- is_multiple BigInt? @default(0)
721
- multiple_count BigInt? @default(0)
722
- merge_multiple_inline BigInt @default(0)
723
- createdatetime DateTime? @db.Timestamp(6)
724
- createuserid BigInt @default(0)
725
- updatedatetime DateTime? @db.Timestamp(6)
726
- updateuserid BigInt @default(0)
727
- isdelete Boolean? @default(false)
728
- istrash Boolean? @default(false)
729
- accountid BigInt @default(0)
730
-
731
- @@schema("public")
732
- }
733
-
734
- model item_injection_fields {
735
- item_injection_field_id BigInt @id(map: "cl_item_injection_fields_pkey") @default(autoincrement())
736
- field_module String? @db.VarChar(200)
737
- field_ref String? @db.VarChar(200)
738
- item_id BigInt @default(0)
739
- item_uid_id BigInt @default(0)
740
- product_id BigInt @default(0)
741
- category_id BigInt @default(0)
742
- brand_id BigInt @default(0)
743
- uom_id BigInt @default(0)
744
- createdatetime DateTime? @db.Timestamp(6)
745
- createuserid BigInt @default(0)
746
- updatedatetime DateTime? @db.Timestamp(6)
747
- updateuserid BigInt @default(0)
748
- isdelete Boolean? @default(false)
749
- istrash Boolean? @default(false)
750
- accountid BigInt @default(0)
751
- itm_itm_inttest BigInt? @default(0)
752
- itm_itm_id1 BigInt? @default(0)
753
- itm_itm_value1 String? @default("") @db.VarChar(256)
754
- itm_itm_date1 DateTime? @db.Date
755
- itm_itm_text1_bk_20 String @default("")
756
- itm_itm_num1_bk_21 Decimal @default(0) @db.Decimal(20, 0)
757
- itm_itm_inttest123 BigInt? @default(0)
758
- itm_itm_inttest1234 BigInt? @default(0)
759
- itm_itm_inttest12345 BigInt? @default(0)
760
- itm_itm_inttest123456 BigInt? @default(0)
761
- itm_itm_inttest08 BigInt? @default(0)
762
- itm_itm_inttest1234756 BigInt? @default(0)
763
- itm_itm_test123 BigInt? @default(0)
764
- itm_itm_test1234 BigInt? @default(0)
765
- itm_itm_pack_qty BigInt? @default(0)
766
- itm_prt_pack_qty2 BigInt? @default(0)
767
- itm_itm_test008 BigInt? @default(0)
768
- itm_prt_pack_qty10 BigInt? @default(0)
769
- itm_prt_50 Decimal? @default(0) @db.Decimal(20, 0)
770
- itm_prt_500 Decimal? @default(0) @db.Decimal(20, 0)
771
- itm_prt_rtdsfsdf_bk_37 String @default("")
772
- yes_bk_38 BigInt @default(0)
773
- itm_itm_customer_marking String? @default("") @db.VarChar(256)
774
- removed_item_ct_sampleonly String?
775
- removed_item_ct_sampleonly2 String?
776
- removed_item_ct_sam3pleonly2 String?
777
- removed_item_ct_sam3pleonl22y2 String?
778
- item_ct_samplefield String?
779
- item_brd_samplefield String?
780
- itm_brd_samplefield String?
781
- removed_itm_uom_samplefield String?
782
- removed_itm_ct_samplefield String?
783
- itm_ct_enable String?
784
-
785
- @@index([brand_id], map: "idx_item_injection_fields_brand_id")
786
- @@index([category_id], map: "idx_item_injection_fields_category_id")
787
- @@index([item_id], map: "idx_item_injection_fields_item_id")
788
- @@index([product_id], map: "idx_item_injection_fields_product_id")
789
- @@index([uom_id], map: "idx_item_injection_fields_uom_id")
790
- @@index([item_id, itm_itm_customer_marking], map: "idx_inj_fields_item_itm_itm_customer_marking")
791
- @@index([item_id, itm_itm_inttest08], map: "idx_inj_fields_item_itm_itm_inttest08")
792
- @@index([item_id, itm_itm_inttest12345], map: "idx_inj_fields_item_itm_itm_inttest12345")
793
- @@index([item_id, itm_itm_inttest123456], map: "idx_inj_fields_item_itm_itm_inttest123456")
794
- @@index([item_id, itm_itm_inttest1234756], map: "idx_inj_fields_item_itm_itm_inttest1234756")
795
- @@index([item_id, itm_itm_pack_qty], map: "idx_inj_fields_item_itm_itm_pack_qty")
796
- @@index([item_id, itm_itm_test008], map: "idx_inj_fields_item_itm_itm_test008")
797
- @@index([item_id, itm_itm_test123], map: "idx_inj_fields_item_itm_itm_test123")
798
- @@index([item_id, itm_itm_test1234], map: "idx_inj_fields_item_itm_itm_test1234")
799
- @@index([product_id, itm_prt_50], map: "idx_inj_fields_product_itm_prt_50")
800
- @@index([product_id, itm_prt_500], map: "idx_inj_fields_product_itm_prt_500")
801
- @@index([product_id, itm_prt_pack_qty10], map: "idx_inj_fields_product_itm_prt_pack_qty10")
802
- @@index([product_id, itm_prt_pack_qty2], map: "idx_inj_fields_product_itm_prt_pack_qty2")
803
- @@index([product_id, itm_prt_rtdsfsdf_bk_37], map: "idx_inj_fields_product_itm_prt_rtdsfsdf")
804
- @@index([product_id, yes_bk_38], map: "idx_inj_fields_product_itm_prt_yes")
805
- @@schema("public")
806
- }
807
-
808
- model location_zones {
809
- location_zone_id BigInt @id(map: "cl_location_zones_pkey") @default(autoincrement())
810
- location_id BigInt @default(0)
811
- zone_name String @db.VarChar(255)
812
- zone_sequence BigInt?
813
- is_default Boolean @default(false)
814
- status Boolean @default(false)
815
- createdatetime DateTime? @db.Timestamp(6)
816
- createuserid BigInt @default(0)
817
- updatedatetime DateTime? @db.Timestamp(6)
818
- updateuserid BigInt @default(0)
819
- isdelete Boolean? @default(false)
820
- istrash Boolean? @default(false)
821
- accountid BigInt @default(0)
822
- zone_code String? @db.VarChar
823
-
824
- @@schema("public")
825
- }
826
-
827
- model logistic_injection_fields {
828
- logistic_injection_field_id BigInt @id(map: "cl_logistic_injection_fields_pkey") @default(autoincrement())
829
- field_module String? @db.VarChar(200)
830
- field_ref String? @db.VarChar(200)
831
- logistic_id BigInt @default(0)
832
- createdatetime DateTime? @db.Timestamp(6)
833
- createuserid BigInt @default(0)
834
- updatedatetime DateTime? @db.Timestamp(6)
835
- updateuserid BigInt @default(0)
836
- isdelete Boolean? @default(false)
837
- istrash Boolean? @default(false)
838
- accountid BigInt @default(0)
839
- lgt_tpt_repo_t3e2s2 Decimal? @default(0) @db.Decimal(20, 4)
840
-
841
- @@index([logistic_id], map: "idx_logistic_injection_fields_logistic_id")
842
- @@index([logistic_id, lgt_tpt_repo_t3e2s2], map: "idx_inj_fields_transporter_lgt_tpt_repo_t3e2s2")
843
- @@schema("public")
844
- }
845
-
846
- model products {
847
- product_id BigInt @id @default(autoincrement())
848
- createdatetime DateTime? @db.Timestamptz(6)
849
- createuserid BigInt @default(0)
850
- updatedatetime DateTime? @db.Timestamptz(6)
851
- updateuserid BigInt @default(0)
852
- isdelete Boolean? @default(false)
853
- istrash Boolean? @default(false)
854
- accountid BigInt @default(0)
855
- product_code String @default(dbgenerated("0")) @db.VarChar(255)
856
- product_name String @db.VarChar(255)
857
- category_id BigInt @default(0)
858
- brand_id BigInt @default(0)
859
- model String? @db.VarChar(128)
860
- description String? @db.VarChar(256)
861
- summary String? @db.VarChar(256)
862
- status Boolean? @default(false)
863
-
864
- @@schema("public")
865
- }
866
-
867
- model repository_injection_fields {
868
- repository_injection_field_id BigInt @id(map: "cl_repository_injection_fields_pkey") @default(autoincrement())
869
- field_module String? @db.VarChar(200)
870
- field_ref String? @db.VarChar(200)
871
- repository_id BigInt @default(0)
872
- repository_item_id BigInt? @default(0)
873
- createdatetime DateTime? @db.Timestamp(6)
874
- createuserid BigInt @default(0)
875
- updatedatetime DateTime? @db.Timestamp(6)
876
- updateuserid BigInt @default(0)
877
- isdelete Boolean? @default(false)
878
- istrash Boolean? @default(false)
879
- accountid BigInt @default(0)
880
- cont_repo_tes Decimal? @default(0) @map("_cont_repo_tes") @db.Decimal(20, 4)
881
- repo_cont_repo_t3es Decimal? @default(0) @db.Decimal(20, 4)
882
- repo_pk_pk_cont Decimal? @default(0) @db.Decimal(20, 4)
883
- repo_itme_pk_pk_cont_item Decimal? @default(0) @db.Decimal(20, 4)
884
- repo_itme_cont_pk_cont_item Decimal? @default(0) @db.Decimal(20, 4)
885
-
886
- @@index([repository_id], map: "idx_repository_injection_fields_repository_id")
887
- @@index([repository_item_id], map: "idx_repository_injection_fields_repository_item_id")
888
- @@index([repository_id, cont_repo_tes], map: "idx_inj_fields_container__cont_repo_tes")
889
- @@index([repository_id, repo_cont_repo_t3es], map: "idx_inj_fields_container_repo_cont_repo_t3es")
890
- @@index([repository_item_id, repo_itme_cont_pk_cont_item], map: "idx_inj_fields_container_repo_itme_cont_pk_cont_item")
891
- @@index([repository_item_id, repo_itme_pk_pk_cont_item], map: "idx_inj_fields_package_repo_itme_pk_pk_cont_item")
892
- @@index([repository_id, repo_pk_pk_cont], map: "idx_inj_fields_package_repo_pk_pk_cont")
893
- @@schema("public")
894
- }
895
-
896
- model retailers {
897
- retailer_id BigInt @id(map: "cl_retailers_pkey") @default(autoincrement())
898
- user_id BigInt @default(0)
899
- company_name String? @db.VarChar(100)
900
- code String? @db.VarChar(64)
901
- account_code String? @db.VarChar(64)
902
- reg_no String? @db.VarChar(20)
903
- gst_no String? @db.VarChar(32)
904
- remark String? @db.VarChar(256)
905
- createdatetime DateTime? @db.Timestamp(6)
906
- createuserid BigInt @default(0)
907
- updatedatetime DateTime? @db.Timestamp(6)
908
- updateuserid BigInt @default(0)
909
- isdelete Boolean? @default(false)
910
- istrash Boolean? @default(false)
911
- accountid BigInt @default(0)
912
-
913
- @@schema("public")
914
- }
915
-
916
- model uoms {
917
- uom_id BigInt @id @default(autoincrement())
918
- createdatetime DateTime? @db.Timestamptz(6)
919
- createuserid BigInt @default(0)
920
- updatedatetime DateTime? @db.Timestamptz(6)
921
- updateuserid BigInt @default(0)
922
- isdelete Boolean? @default(false)
923
- istrash Boolean? @default(false)
924
- accountid BigInt @default(0)
925
- uom_name String? @db.VarChar(128)
926
- uom_code String @default(dbgenerated("0")) @db.VarChar(128)
927
- description String? @db.VarChar(256)
928
- metric_type String? @db.VarChar(256)
929
- metric_type_display_name String? @db.VarChar(128)
930
- decimal_digit Int @default(2) @db.SmallInt
931
- status Boolean?
932
-
933
- @@schema("public")
934
- }
935
-
936
- model user_injection_fields {
937
- user_injection_field_id BigInt @id(map: "cl_user_injection_fields_pkey") @default(autoincrement())
938
- field_module String? @db.VarChar(200)
939
- field_ref String? @db.VarChar(200)
940
- user_id BigInt @default(0)
941
- branch_id BigInt? @default(0)
942
- member_id BigInt? @default(0)
943
- createdatetime DateTime? @db.Timestamp(6)
944
- createuserid BigInt @default(0)
945
- updatedatetime DateTime? @db.Timestamp(6)
946
- updateuserid BigInt @default(0)
947
- isdelete Boolean? @default(false)
948
- istrash Boolean? @default(false)
949
- accountid BigInt @default(0)
950
- usr_cust_cust_qty BigInt? @default(0)
951
- br_cust_branch_qty BigInt? @default(0)
952
- usr_cust_customer_branch_marking String? @db.VarChar(255)
953
- br_cust_customer_branch_marking String? @db.VarChar(255)
954
- usr_cust_customer_marking String?
955
- br_cust_postcode String?
956
- usr_cust_source_agent_remid String? @db.VarChar(255)
957
- usr_cust_source_client_remid String? @db.VarChar(255)
958
- br_cust_source_marking_remid String? @db.VarChar(255)
959
- usr_cust_source_profile_type String? @db.VarChar(255)
960
- br_cust_branch3_qty Decimal? @default(0) @db.Decimal(20, 4)
961
- usr_mb_member_test BigInt? @default(0)
962
- removed_usr_cust_222333223 DateTime? @db.Date
963
- removed_br_ret_4sdfsdfd7s String?
964
- usr_wrk_enable String?
965
- usr_ret_enable String?
966
- usr_admin_is_oku Int?
967
-
968
- @@index([branch_id], map: "idx_user_injection_fields_branch_id")
969
- @@index([member_id], map: "idx_user_injection_fields_member_id")
970
- @@index([user_id], map: "idx_user_injection_fields_user_id")
971
- @@index([branch_id, br_cust_branch3_qty], map: "idx_inj_fields_customer_br_cust_branch3_qty")
972
- @@index([branch_id, br_cust_branch_qty], map: "idx_inj_fields_customer_br_cust_branch_qty")
973
- @@index([branch_id, br_cust_customer_branch_marking], map: "idx_inj_fields_customer_br_cust_customer_branch_marking")
974
- @@index([branch_id, br_cust_postcode], map: "idx_inj_fields_customer_br_cust_postcode")
975
- @@index([branch_id, br_cust_source_marking_remid], map: "idx_inj_fields_customer_br_cust_source_marking_remid")
976
- @@index([user_id, usr_cust_cust_qty], map: "idx_inj_fields_customer_usr_cust_cust_qty")
977
- @@index([user_id, usr_cust_customer_branch_marking], map: "idx_inj_fields_customer_usr_cust_customer_branch_marking")
978
- @@index([user_id, usr_cust_customer_marking], map: "idx_inj_fields_customer_usr_cust_customer_marking")
979
- @@index([user_id, usr_cust_source_agent_remid], map: "idx_inj_fields_customer_usr_cust_source_agent_remid")
980
- @@index([user_id, usr_cust_source_client_remid], map: "idx_inj_fields_customer_usr_cust_source_client_remid")
981
- @@index([user_id, usr_cust_source_profile_type], map: "idx_inj_fields_customer_usr_cust_source_profile_type")
982
- @@index([user_id, usr_mb_member_test], map: "idx_inj_fields_member_usr_mb_member_test")
983
- @@schema("public")
984
- }
985
-
986
- model workers {
987
- worker_id BigInt @id(map: "cl_workers_pkey") @default(autoincrement())
988
- user_id BigInt @default(0)
989
- remark String? @db.VarChar(256)
990
- createdatetime DateTime? @db.Timestamp(6)
991
- createuserid BigInt @default(0)
992
- updatedatetime DateTime? @db.Timestamp(6)
993
- updateuserid BigInt @default(0)
994
- isdelete Boolean? @default(false)
995
- istrash Boolean? @default(false)
996
- accountid BigInt @default(0)
997
-
998
- @@schema("public")
999
- }
1000
-
1001
- model document_props {
1002
- document_prop_id BigInt @id(map: "document_status_pkey") @default(autoincrement())
1003
- createdatetime DateTime? @db.Timestamptz(6)
1004
- createuserid BigInt @default(0)
1005
- updatedatetime DateTime? @db.Timestamptz(6)
1006
- updateuserid BigInt @default(0)
1007
- isdelete Boolean? @default(false)
1008
- istrash Boolean? @default(false)
1009
- accountid BigInt @default(0)
1010
- document_id BigInt @default(0)
1011
- document_item_id BigInt @default(0)
1012
- document_doc_id BigInt @default(0)
1013
- type String @db.VarChar(32)
1014
- document_status Int @default(0) @db.SmallInt
1015
-
1016
- @@schema("public")
1017
- }
1018
-
1019
- model cl_account_props {
1020
- account_props_id BigInt @id @default(autoincrement())
1021
- account_id BigInt @default(0)
1022
- type String? @db.VarChar(32)
1023
- props_value_type String? @db.VarChar(32)
1024
- props_value String? @db.VarChar(256)
1025
- props_id BigInt @default(0)
1026
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1027
- props_timestamp DateTime? @db.Timestamp(6)
1028
- is_multiple Boolean? @default(false)
1029
- ax_createdatetime DateTime? @db.Timestamp(6)
1030
- ax_createuserid BigInt @default(0)
1031
- ax_updatedatetime DateTime? @db.Timestamp(6)
1032
- ax_updateuserid BigInt @default(0)
1033
- ax_isdelete Boolean? @default(false)
1034
- ax_istrash Boolean? @default(false)
1035
- ax_accountid BigInt @default(0)
1036
-
1037
- @@schema("public")
1038
- }
1039
-
1040
- model cl_audit_item_uids {
1041
- audit_uid_id BigInt @id @default(autoincrement())
1042
- item_uid_id BigInt @default(0)
1043
- slot_id BigInt @default(0)
1044
- move_type String @db.VarChar(255)
1045
- is_latest_move BigInt
1046
- ax_createdatetime DateTime? @db.Timestamp(6)
1047
- ax_createuserid BigInt @default(0)
1048
- ax_updatedatetime DateTime? @db.Timestamp(6)
1049
- ax_updateuserid BigInt @default(0)
1050
- ax_isdelete Boolean? @default(false)
1051
- ax_istrash Boolean? @default(false)
1052
- ax_accountid BigInt @default(0)
1053
- move_document_item_id BigInt @default(0)
1054
- qty Decimal @default(0) @db.Decimal(10, 4)
1055
- move_document_id BigInt?
1056
- move_document_doc_id BigInt?
1057
- item_id BigInt @default(0)
1058
- location_id BigInt @default(0)
1059
- rack_id BigInt @default(0)
1060
- balance_qty Decimal @default(0) @db.Decimal(10, 4)
1061
-
1062
- @@schema("public")
1063
- }
1064
-
1065
- model cl_audit_trail_props {
1066
- audit_trail_props_id BigInt @id @default(autoincrement())
1067
- audit_trail_id BigInt? @default(0)
1068
- type String? @db.VarChar(32)
1069
- props_value String? @db.VarChar(256)
1070
- props_id BigInt @default(0)
1071
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1072
- props_timestamp DateTime? @db.Timestamp(6)
1073
- ax_createdatetime DateTime? @db.Timestamp(6)
1074
- ax_createuserid BigInt @default(0)
1075
- ax_updatedatetime DateTime? @db.Timestamp(6)
1076
- ax_updateuserid BigInt @default(0)
1077
- ax_isdelete Boolean? @default(false)
1078
- ax_istrash Boolean? @default(false)
1079
- ax_accountid BigInt @default(0)
1080
-
1081
- @@schema("public")
1082
- }
1083
-
1084
- model cl_audit_trail_tags {
1085
- audit_trail_tag_id BigInt @id @default(autoincrement())
1086
- audit_trail_id BigInt? @default(0)
1087
- tag_key String @db.VarChar(256)
1088
- tag_value String? @db.VarChar(256)
1089
- tag_label String? @db.VarChar(256)
1090
- tag_description String? @default("")
1091
- ax_createdatetime DateTime? @db.Timestamp(6)
1092
- ax_createuserid BigInt @default(0)
1093
- ax_updatedatetime DateTime? @db.Timestamp(6)
1094
- ax_updateuserid BigInt @default(0)
1095
- ax_isdelete Boolean? @default(false)
1096
- ax_istrash Boolean? @default(false)
1097
- ax_accountid BigInt @default(0)
1098
-
1099
- @@schema("public")
1100
- }
1101
-
1102
- model cl_audit_trails {
1103
- audit_trail_id BigInt @id @default(autoincrement())
1104
- target String @db.VarChar(255)
1105
- module String @db.VarChar(255)
1106
- trail_ref String @db.VarChar(255)
1107
- type String @db.VarChar(100)
1108
- description String? @default("")
1109
- refer_id BigInt @default(0)
1110
- ax_createdatetime DateTime? @db.Timestamp(6)
1111
- ax_createuserid BigInt @default(0)
1112
- ax_updatedatetime DateTime? @db.Timestamp(6)
1113
- ax_updateuserid BigInt @default(0)
1114
- ax_isdelete Boolean? @default(false)
1115
- ax_istrash Boolean? @default(false)
1116
- ax_accountid BigInt @default(0)
1117
-
1118
- @@schema("public")
1119
- }
1120
-
1121
- /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1122
- model cl_ax {
1123
- ax_createdatetime DateTime? @db.Timestamp(6)
1124
- ax_createuserid BigInt @default(0)
1125
- ax_updatedatetime DateTime? @db.Timestamp(6)
1126
- ax_updateuserid BigInt @default(0)
1127
- ax_isdelete Boolean? @default(false)
1128
- ax_istrash Boolean? @default(false)
1129
- ax_accountid BigInt @default(0)
1130
-
1131
- @@ignore
1132
- @@schema("public")
1133
- }
1134
-
1135
- model cl_branch_props {
1136
- branch_props_id BigInt @id @default(autoincrement())
1137
- branch_id BigInt?
1138
- type String? @db.VarChar(32)
1139
- props_value String? @db.VarChar(256)
1140
- props_id BigInt @default(0)
1141
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1142
- props_timestamp DateTime? @db.Timestamp(6)
1143
- ax_createdatetime DateTime? @db.Timestamp(6)
1144
- ax_createuserid BigInt @default(0)
1145
- ax_updatedatetime DateTime? @db.Timestamp(6)
1146
- ax_updateuserid BigInt @default(0)
1147
- ax_isdelete Boolean? @default(false)
1148
- ax_istrash Boolean? @default(false)
1149
- ax_accountid BigInt @default(0)
1150
-
1151
- @@index([props_id, type], map: "ids_branch_props_props_id_type")
1152
- @@index([branch_id, type], map: "ids_branch_props_type_branch_id")
1153
- @@schema("public")
1154
- }
1155
-
1156
- /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1157
- model cl_ci_sessions {
1158
- id String @db.VarChar(128)
1159
- ip_address String @db.VarChar(45)
1160
- timestamp Int @default(0)
1161
- data String
1162
-
1163
- @@ignore
1164
- @@schema("public")
1165
- }
1166
-
1167
- model cl_counters {
1168
- counter_id BigInt @id @default(autoincrement())
1169
- counter_module String? @db.VarChar(128)
1170
- module_type String? @db.VarChar(256)
1171
- increment_no BigInt?
1172
- ax_createdatetime DateTime? @db.Timestamp(6)
1173
- ax_createuserid BigInt @default(0)
1174
- ax_updatedatetime DateTime? @db.Timestamp(6)
1175
- ax_updateuserid BigInt @default(0)
1176
- ax_isdelete Boolean? @default(false)
1177
- ax_istrash Boolean? @default(false)
1178
- ax_accountid BigInt @default(0)
1179
- year_lbl String? @db.VarChar
1180
- month_lbl String? @db.VarChar
1181
-
1182
- @@schema("public")
1183
- }
1184
-
1185
- model cl_custom_field_options {
1186
- custom_field_option_id BigInt @id @default(autoincrement())
1187
- custom_field_id BigInt @default(autoincrement())
1188
- option_key String? @db.VarChar(255)
1189
- option_value String? @db.VarChar(255)
1190
- option_name String? @db.VarChar(255)
1191
- ax_createdatetime DateTime? @db.Timestamp(6)
1192
- ax_createuserid BigInt @default(0)
1193
- ax_updatedatetime DateTime? @db.Timestamp(6)
1194
- ax_updateuserid BigInt @default(0)
1195
- ax_isdelete Boolean? @default(false)
1196
- ax_istrash Boolean? @default(false)
1197
- ax_accountid BigInt @default(0)
1198
-
1199
- @@schema("public")
1200
- }
1201
-
1202
- model cl_custom_field_rules {
1203
- custom_field_rule_id BigInt @id @default(autoincrement())
1204
- custom_field_id BigInt @default(autoincrement())
1205
- rule_key String @db.VarChar(255)
1206
- rule_value String? @db.VarChar(255)
1207
- ax_createdatetime DateTime? @db.Timestamp(6)
1208
- ax_createuserid BigInt @default(0)
1209
- ax_updatedatetime DateTime? @db.Timestamp(6)
1210
- ax_updateuserid BigInt @default(0)
1211
- ax_isdelete Boolean? @default(false)
1212
- ax_istrash Boolean? @default(false)
1213
- ax_accountid BigInt @default(0)
1214
-
1215
- @@schema("public")
1216
- }
1217
-
1218
- model cl_custom_fields {
1219
- custom_field_id BigInt @id @default(autoincrement())
1220
- field_key String? @db.VarChar(255)
1221
- field_module String @db.VarChar(255)
1222
- module_function String? @db.VarChar(255)
1223
- field_name String? @db.VarChar(255)
1224
- field_label String? @db.VarChar(255)
1225
- field_type String? @db.VarChar(255)
1226
- field_description String? @db.VarChar(255)
1227
- default_value String? @db.VarChar(255)
1228
- status Int? @default(0) @db.SmallInt
1229
- ax_createdatetime DateTime? @db.Timestamp(6)
1230
- ax_createuserid BigInt @default(0)
1231
- ax_updatedatetime DateTime? @db.Timestamp(6)
1232
- ax_updateuserid BigInt @default(0)
1233
- ax_isdelete Boolean? @default(false)
1234
- ax_istrash Boolean? @default(false)
1235
- ax_accountid BigInt @default(0)
1236
-
1237
- @@schema("public")
1238
- }
1239
-
1240
- model cl_files2 {
1241
- file_id BigInt @id(map: "cl_files_pkey") @default(autoincrement())
1242
- target String @db.VarChar(20)
1243
- action String @db.VarChar(20)
1244
- tag String @db.VarChar(50)
1245
- description String? @db.VarChar(256)
1246
- folder_path String? @db.VarChar(256)
1247
- folder_url String? @db.VarChar(256)
1248
- name String @db.VarChar(256)
1249
- refer_id BigInt @default(0)
1250
- ax_createdatetime DateTime? @db.Timestamp(6)
1251
- ax_createuserid BigInt @default(0)
1252
- ax_updatedatetime DateTime? @db.Timestamp(6)
1253
- ax_updateuserid BigInt @default(0)
1254
- ax_isdelete Boolean? @default(false)
1255
- ax_istrash Boolean? @default(false)
1256
- ax_accountid BigInt @default(0)
1257
- type String? @db.VarChar
1258
- actual_name String? @db.VarChar
1259
-
1260
- @@index([target, action, tag, refer_id], map: "ids_files_target_action_tag_refer_id")
1261
- @@schema("public")
1262
- }
1263
-
1264
- model cl_group_props {
1265
- group_props_id BigInt @id @default(autoincrement())
1266
- group_id BigInt @default(0)
1267
- type String? @db.VarChar(128)
1268
- reference_id BigInt @default(0)
1269
- props_value String? @db.VarChar(256)
1270
- props_id BigInt @default(0)
1271
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1272
- props_timestamp DateTime? @db.Timestamp(6)
1273
- ax_createdatetime DateTime? @db.Timestamp(6)
1274
- ax_createuserid BigInt @default(0)
1275
- ax_updatedatetime DateTime? @db.Timestamp(6)
1276
- ax_updateuserid BigInt @default(0)
1277
- ax_isdelete Boolean?
1278
- ax_istrash Boolean?
1279
- ax_accountid BigInt @default(0)
1280
- group_item_id BigInt?
1281
- props_integer BigInt?
1282
-
1283
- @@index([props_value], map: "idx_group_props_props_value")
1284
- @@index([reference_id, type], map: "idx_group_props_reference_id_type")
1285
- @@index([group_id], map: "idxl_group_props_group_id")
1286
- @@schema("public")
1287
- }
1288
-
1289
- model cl_item_amounts {
1290
- item_amount_id BigInt @id(map: "cl_item_amounts_pk") @default(autoincrement())
1291
- item_id BigInt?
1292
- item_uid_id BigInt?
1293
- type String? @db.VarChar(32)
1294
- display_name String? @db.VarChar(32)
1295
- description String? @db.VarChar(256)
1296
- amount Decimal? @db.Decimal(15, 4)
1297
- ax_createdatetime DateTime? @db.Timestamp(6)
1298
- ax_createuserid BigInt?
1299
- ax_updatedatetime DateTime? @db.Timestamp(6)
1300
- ax_updateuserid BigInt?
1301
- ax_isdelete Boolean?
1302
- ax_istrash Boolean?
1303
- ax_accountid BigInt?
1304
-
1305
- @@index([item_id, type], map: "cl_item_amounts_item_id_type_index")
1306
- @@index([item_uid_id, type], map: "cl_item_amounts_item_uid_id_type_index")
1307
- @@index([item_uid_id, type, item_id], map: "cl_item_amounts_item_uid_id_type_item_id_index")
1308
- @@index([type], map: "cl_item_amounts_type_index", type: Hash)
1309
- @@index([amount], map: "ids_item_amounts_amount")
1310
- @@schema("public")
1311
- }
1312
-
1313
- model cl_item_injection_props {
1314
- item_injection_props_id BigInt @id @default(autoincrement())
1315
- props_module String? @db.VarChar(200)
1316
- props_ref String? @db.VarChar(200)
1317
- is_multiple Int? @default(0) @db.SmallInt
1318
- item_id BigInt @default(0)
1319
- item_uid_id BigInt @default(0)
1320
- product_id BigInt @default(0)
1321
- reference_id BigInt @default(0)
1322
- type String? @db.VarChar(200)
1323
- props_field String? @db.VarChar(200)
1324
- props_value String? @db.VarChar(256)
1325
- props_id BigInt? @default(0)
1326
- props_text String?
1327
- props_numeric Decimal? @default(0.0000) @db.Decimal(20, 4)
1328
- ax_createdatetime DateTime? @db.Timestamp(6)
1329
- ax_createuserid BigInt @default(0)
1330
- ax_updatedatetime DateTime? @db.Timestamp(6)
1331
- ax_updateuserid BigInt @default(0)
1332
- ax_isdelete Boolean? @default(false)
1333
- ax_istrash Boolean? @default(false)
1334
- ax_accountid BigInt @default(0)
1335
- brand_id BigInt @default(0)
1336
- category_id BigInt @default(0)
1337
- uom_id BigInt @default(0)
1338
- props_date DateTime? @db.Date
1339
- props_date_time DateTime? @db.Timestamp(6)
1340
- props_timestamp BigInt?
1341
- props_integer BigInt?
1342
- has_multiple_inline Int? @default(0) @db.SmallInt
1343
-
1344
- @@index([item_id, product_id, item_uid_id, props_module, props_ref, type, ax_isdelete], map: "idx_item_injection_props_item_id_type_ref_module")
1345
- @@schema("public")
1346
- }
1347
-
1348
- model cl_item_props {
1349
- item_props_id BigInt @id @default(autoincrement())
1350
- item_id BigInt @default(0)
1351
- type String? @db.VarChar(128)
1352
- props_value String? @db.VarChar(256)
1353
- props_id BigInt @default(0)
1354
- props_numeric Decimal @default(0.0000) @db.Decimal(20, 4)
1355
- props_timestamp DateTime? @db.Timestamp(6)
1356
- ax_createdatetime DateTime? @db.Timestamp(6)
1357
- ax_createuserid BigInt @default(0)
1358
- ax_updatedatetime DateTime? @db.Timestamp(6)
1359
- ax_updateuserid BigInt @default(0)
1360
- ax_isdelete Boolean?
1361
- ax_istrash Boolean?
1362
- ax_accountid BigInt @default(0)
1363
- item_uid_id BigInt? @default(0)
1364
- product_id BigInt?
1365
- reference_id BigInt?
1366
- props_integer BigInt?
1367
-
1368
- @@index([type], map: "cl_item_props_type_index", type: Hash)
1369
- @@index([ax_isdelete], map: "ids_item_props_is_delete")
1370
- @@index([item_id, ax_isdelete, type], map: "ids_item_props_item_id_delete_type")
1371
- @@index([item_id, type], map: "ids_item_props_item_id_type")
1372
- @@index([product_id], map: "ids_item_props_product_id")
1373
- @@index([props_id], map: "ids_item_props_props_id")
1374
- @@index([props_id, props_value], map: "ids_item_props_props_id_props_value")
1375
- @@index([props_numeric], map: "ids_item_props_props_numeric")
1376
- @@index([props_timestamp], map: "ids_item_props_props_timestamp")
1377
- @@index([props_value], map: "ids_item_props_props_value")
1378
- @@index([item_id], map: "idx_item_props_item_id")
1379
- @@index([item_uid_id], map: "idx_item_props_item_uid_id")
1380
- @@index([item_uid_id], map: "idx_item_uid_id")
1381
- @@schema("public")
1382
- }
1383
-
1384
- model cl_item_status {
1385
- item_status_id BigInt @id @default(autoincrement())
1386
- item_id BigInt @default(0)
1387
- type String @db.VarChar(128)
1388
- status Int @default(0) @db.SmallInt
1389
- ax_createdatetime DateTime? @db.Timestamp(6)
1390
- ax_createuserid BigInt @default(0)
1391
- ax_updatedatetime DateTime? @db.Timestamp(6)
1392
- ax_updateuserid BigInt @default(0)
1393
- ax_isdelete Boolean?
1394
- ax_istrash Boolean?
1395
- ax_accountid BigInt @default(0)
1396
- item_uid_id BigInt?
1397
-
1398
- @@index([item_id], map: "ids_item_status_item_id")
1399
- @@index([item_id, type], map: "ids_item_status_item_id_type")
1400
- @@index([item_uid_id], map: "ids_item_status_item_uid_id")
1401
- @@index([status], map: "ids_item_status_status")
1402
- @@schema("public")
1403
- }
1404
-
1405
- /// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
1406
- model cl_item_uids {
1407
- item_uid_id BigInt @id @default(autoincrement())
1408
- item_id BigInt @default(0)
1409
- barcode String @db.VarChar(255)
1410
- slot_id BigInt @default(0)
1411
- cost Decimal? @default(0.0000) @db.Decimal(10, 4)
1412
- status_type String? @default(dbgenerated("0")) @db.VarChar(255)
1413
- ax_createdatetime DateTime? @db.Timestamp(6)
1414
- ax_createuserid BigInt @default(0)
1415
- ax_updatedatetime DateTime? @db.Timestamp(6)
1416
- ax_updateuserid BigInt @default(0)
1417
- ax_isdelete Boolean? @default(false)
1418
- ax_istrash Boolean? @default(false)
1419
- ax_accountid BigInt @default(0)
1420
- custom_batch_no String? @db.VarChar
1421
- expiry_date DateTime? @db.Date
1422
-
1423
- @@index([slot_id], map: "idx_item_uids_slot_id")
1424
- @@index([slot_id], map: "idx_slot_id")
1425
- @@schema("public")
1426
- }
1427
-
1428
- model cl_location_zone_items {
1429
- location_zone_item_id BigInt @id @default(autoincrement())
1430
- location_zone_id BigInt @default(0)
1431
- item_type String @db.VarChar(255)
1432
- reference_id BigInt?
1433
- ax_createdatetime DateTime? @db.Timestamp(6)
1434
- ax_createuserid BigInt @default(0)
1435
- ax_updatedatetime DateTime? @db.Timestamp(6)
1436
- ax_updateuserid BigInt @default(0)
1437
- ax_isdelete Boolean? @default(false)
1438
- ax_istrash Boolean? @default(false)
1439
- ax_accountid BigInt @default(0)
1440
-
1441
- @@schema("public")
1442
- }
1443
-
1444
- model cl_logistic_injection_props {
1445
- logistic_injection_props_id BigInt @id @default(autoincrement())
1446
- props_module String? @db.VarChar(200)
1447
- props_ref String? @db.VarChar(200)
1448
- is_multiple Int? @default(0) @db.SmallInt
1449
- logistic_id BigInt @default(0)
1450
- type String? @db.VarChar(200)
1451
- props_field String? @db.VarChar(200)
1452
- props_value String? @db.VarChar(256)
1453
- props_id BigInt? @default(0)
1454
- props_text String?
1455
- props_numeric Decimal? @default(0.0000) @db.Decimal(20, 4)
1456
- props_timestamp BigInt?
1457
- props_date DateTime? @db.Date
1458
- props_date_time DateTime? @db.Timestamp(6)
1459
- props_integer BigInt? @default(0)
1460
- ax_createdatetime DateTime? @db.Timestamp(6)
1461
- ax_createuserid BigInt @default(0)
1462
- ax_updatedatetime DateTime? @db.Timestamp(6)
1463
- ax_updateuserid BigInt @default(0)
1464
- ax_isdelete Boolean? @default(false)
1465
- ax_istrash Boolean? @default(false)
1466
- ax_accountid BigInt @default(0)
1467
- has_multiple_inline Int? @default(0) @db.SmallInt
1468
-
1469
- @@schema("public")
1470
- }
1471
-
1472
- model cl_logistic_props {
1473
- logistic_props_id BigInt @id @default(autoincrement())
1474
- logistic_id BigInt? @default(0)
1475
- type String? @db.VarChar(32)
1476
- props_value String? @db.VarChar(256)
1477
- props_id BigInt @default(0)
1478
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1479
- props_timestamp DateTime? @db.Timestamp(6)
1480
- ax_createdatetime DateTime? @db.Timestamp(6)
1481
- ax_createuserid BigInt @default(0)
1482
- ax_updatedatetime DateTime? @db.Timestamp(6)
1483
- ax_updateuserid BigInt @default(0)
1484
- ax_isdelete Boolean? @default(false)
1485
- ax_istrash Boolean? @default(false)
1486
- ax_accountid BigInt @default(0)
1487
- props_integer BigInt?
1488
-
1489
- @@schema("public")
1490
- }
1491
-
1492
- model cl_logistics {
1493
- logistic_id BigInt @id @default(autoincrement())
1494
- label String? @db.VarChar(100)
1495
- type String? @db.VarChar(32)
1496
- description String? @db.VarChar(256)
1497
- remark String? @db.VarChar(256)
1498
- status Int? @default(0) @db.SmallInt
1499
- ax_createdatetime DateTime? @db.Timestamp(6)
1500
- ax_createuserid BigInt @default(0)
1501
- ax_updatedatetime DateTime? @db.Timestamp(6)
1502
- ax_updateuserid BigInt @default(0)
1503
- ax_isdelete Boolean? @default(false)
1504
- ax_istrash Boolean? @default(false)
1505
- ax_accountid BigInt @default(0)
1506
-
1507
- @@schema("public")
1508
- }
1509
-
1510
- model cl_messages {
1511
- message_id BigInt @id @default(autoincrement())
1512
- message String?
1513
- message_type String? @db.VarChar(256)
1514
- message_key String? @db.VarChar(256)
1515
- target String @db.VarChar(255)
1516
- module String @db.VarChar(255)
1517
- message_ref String @db.VarChar(255)
1518
- ref_id BigInt @default(0)
1519
- send_key String? @db.VarChar(256)
1520
- send_destination String @db.VarChar(255)
1521
- send_status String? @db.VarChar(256)
1522
- send_attempt BigInt? @default(0)
1523
- send_datetime DateTime? @db.Timestamp(6)
1524
- ax_createdatetime DateTime? @db.Timestamp(6)
1525
- ax_createuserid BigInt @default(0)
1526
- ax_updatedatetime DateTime? @db.Timestamp(6)
1527
- ax_updateuserid BigInt @default(0)
1528
- ax_isdelete Boolean? @default(false)
1529
- ax_istrash Boolean? @default(false)
1530
- ax_accountid BigInt @default(0)
1531
-
1532
- @@schema("public")
1533
- }
1534
-
1535
- model cl_module_props {
1536
- module_props_id BigInt @id @default(autoincrement())
1537
- module_id BigInt @default(0)
1538
- type String? @db.VarChar(32)
1539
- props_value String? @db.VarChar(256)
1540
- props_id BigInt @default(0)
1541
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1542
- props_timestamp DateTime? @db.Timestamp(6)
1543
- ax_createdatetime DateTime? @db.Timestamp(6)
1544
- ax_createuserid BigInt @default(0)
1545
- ax_updatedatetime DateTime? @db.Timestamp(6)
1546
- ax_updateuserid BigInt @default(0)
1547
- ax_isdelete Boolean? @default(false)
1548
- ax_istrash Boolean? @default(false)
1549
- ax_accountid BigInt @default(0)
1550
- props_value_type String? @db.VarChar(32)
1551
- is_multiple Boolean?
1552
- props_integer BigInt?
1553
-
1554
- @@schema("public")
1555
- }
1556
-
1557
- model cl_module_status {
1558
- module_status_id BigInt @id @default(autoincrement())
1559
- module_id BigInt @default(0)
1560
- type String @db.VarChar(32)
1561
- status Int @default(0) @db.SmallInt
1562
- ax_createdatetime DateTime? @db.Timestamp(6)
1563
- ax_createuserid BigInt @default(0)
1564
- ax_updatedatetime DateTime? @db.Timestamp(6)
1565
- ax_updateuserid BigInt @default(0)
1566
- ax_isdelete Boolean? @default(false)
1567
- ax_istrash Boolean? @default(false)
1568
- ax_accountid BigInt @default(0)
1569
-
1570
- @@schema("public")
1571
- }
1572
-
1573
- model cl_modules {
1574
- module_id BigInt @id @default(autoincrement())
1575
- module_name String? @db.VarChar(256)
1576
- module_key String? @db.VarChar(256)
1577
- module_description String?
1578
- ax_createdatetime DateTime? @db.Timestamp(6)
1579
- ax_createuserid BigInt @default(0)
1580
- ax_updatedatetime DateTime? @db.Timestamp(6)
1581
- ax_updateuserid BigInt @default(0)
1582
- ax_isdelete Boolean? @default(false)
1583
- ax_istrash Boolean? @default(false)
1584
- ax_accountid BigInt @default(0)
1585
-
1586
- @@schema("public")
1587
- }
1588
-
1589
- model cl_packages {
1590
- package_id BigInt @id @default(autoincrement())
1591
- main_item_id BigInt @default(0)
1592
- item_id BigInt @default(0)
1593
- code String? @db.VarChar(32)
1594
- description String? @db.VarChar(128)
1595
- qty Decimal @default(0.0000) @db.Decimal(10, 4)
1596
- ax_createdatetime DateTime? @db.Timestamp(6)
1597
- ax_createuserid BigInt @default(0)
1598
- ax_updatedatetime DateTime? @db.Timestamp(6)
1599
- ax_updateuserid BigInt @default(0)
1600
- ax_isdelete Boolean? @default(false)
1601
- ax_istrash Boolean? @default(false)
1602
- ax_accountid BigInt @default(0)
1603
-
1604
- @@schema("public")
1605
- }
1606
-
1607
- model cl_passcodes {
1608
- passcode_id BigInt @id @default(autoincrement())
1609
- code String @db.VarChar(256)
1610
- code_type String? @db.VarChar(256)
1611
- code_key String? @db.VarChar(256)
1612
- target String @db.VarChar(255)
1613
- module String @db.VarChar(255)
1614
- code_ref String @db.VarChar(255)
1615
- ref_id BigInt @default(0)
1616
- output_length BigInt @default(autoincrement())
1617
- pattern String? @db.VarChar(256)
1618
- claim_status String? @db.VarChar(256)
1619
- claim_attempt BigInt? @default(0)
1620
- claim_datetime DateTime? @db.Timestamp(6)
1621
- claim_user_id BigInt @default(0)
1622
- ax_createdatetime DateTime? @db.Timestamp(6)
1623
- ax_createuserid BigInt @default(0)
1624
- ax_updatedatetime DateTime? @db.Timestamp(6)
1625
- ax_updateuserid BigInt @default(0)
1626
- ax_isdelete Boolean? @default(false)
1627
- ax_istrash Boolean? @default(false)
1628
- ax_accountid BigInt @default(0)
1629
-
1630
- @@schema("public")
1631
- }
1632
-
1633
- model cl_payment_methods {
1634
- payment_method_id BigInt @id @default(autoincrement())
1635
- name String @db.VarChar(256)
1636
- merchant_code String? @db.VarChar(256)
1637
- merchant_key String? @db.VarChar(256)
1638
- response_url String?
1639
- backend_url String?
1640
- description String?
1641
- status Int @default(0) @db.SmallInt
1642
- ax_createdatetime DateTime? @db.Timestamp(6)
1643
- ax_createuserid BigInt @default(0)
1644
- ax_updatedatetime DateTime? @db.Timestamp(6)
1645
- ax_updateuserid BigInt @default(0)
1646
- ax_isdelete Boolean? @default(false)
1647
- ax_istrash Boolean? @default(false)
1648
- ax_accountid BigInt @default(0)
1649
-
1650
- @@schema("public")
1651
- }
1652
-
1653
- model cl_permission_routes {
1654
- permission_route_id BigInt @id @default(autoincrement())
1655
- group_id BigInt @default(0)
1656
- public_route String? @db.VarChar(256)
1657
- is_allow Boolean @default(false)
1658
- ax_createdatetime DateTime? @db.Timestamp(6)
1659
- ax_createuserid BigInt @default(0)
1660
- ax_updatedatetime DateTime? @db.Timestamp(6)
1661
- ax_updateuserid BigInt @default(0)
1662
- ax_isdelete Boolean?
1663
- ax_istrash Boolean?
1664
- ax_accountid BigInt @default(0)
1665
-
1666
- @@schema("public")
1667
- }
1668
-
1669
- model cl_rate_amounts {
1670
- rate_amount_id BigInt @id @default(autoincrement())
1671
- rate_id BigInt @default(0)
1672
- rate_item_id BigInt @default(0)
1673
- type String @db.VarChar(32)
1674
- display_name String? @db.VarChar(32)
1675
- description String? @db.VarChar(256)
1676
- amount Decimal @default(0.0000) @db.Decimal(10, 4)
1677
- ax_createdatetime DateTime? @db.Timestamp(6)
1678
- ax_createuserid BigInt @default(0)
1679
- ax_updatedatetime DateTime? @db.Timestamp(6)
1680
- ax_updateuserid BigInt @default(0)
1681
- ax_isdelete Boolean? @default(false)
1682
- ax_istrash Boolean? @default(false)
1683
- ax_accountid BigInt @default(0)
1684
-
1685
- @@schema("public")
1686
- }
1687
-
1688
- model cl_rate_items {
1689
- rate_item_id BigInt @id @default(autoincrement())
1690
- rate_id BigInt @default(0)
1691
- scope_type String? @db.VarChar(32)
1692
- scope_id BigInt @default(0)
1693
- group_id BigInt @default(0)
1694
- item_rate Decimal? @default(0.0000) @db.Decimal(10, 2)
1695
- ax_createdatetime DateTime? @db.Timestamp(6)
1696
- ax_createuserid BigInt @default(0)
1697
- ax_updatedatetime DateTime? @db.Timestamp(6)
1698
- ax_updateuserid BigInt @default(0)
1699
- ax_isdelete Boolean? @default(false)
1700
- ax_istrash Boolean? @default(false)
1701
- ax_accountid BigInt @default(0)
1702
-
1703
- @@schema("public")
1704
- }
1705
-
1706
- model cl_rate_props {
1707
- rate_props_id BigInt @id @default(autoincrement())
1708
- rate_id BigInt @default(0)
1709
- rate_item_id BigInt?
1710
- type String? @db.VarChar(32)
1711
- props_value String? @db.VarChar(256)
1712
- props_id BigInt @default(0)
1713
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1714
- props_timestamp DateTime? @db.Timestamp(6)
1715
- ax_createdatetime DateTime? @db.Timestamp(6)
1716
- ax_createuserid BigInt @default(0)
1717
- ax_updatedatetime DateTime? @db.Timestamp(6)
1718
- ax_updateuserid BigInt @default(0)
1719
- ax_isdelete Boolean? @default(false)
1720
- ax_istrash Boolean? @default(false)
1721
- ax_accountid BigInt @default(0)
1722
- target String? @db.VarChar(32)
1723
- props_integer BigInt?
1724
-
1725
- @@schema("public")
1726
- }
1727
-
1728
- model cl_rate_rule_amounts {
1729
- rate_rule_amount_id BigInt @id @default(autoincrement())
1730
- rate_rule_id BigInt @default(0)
1731
- rate_rule_item_id BigInt @default(0)
1732
- type String @db.VarChar(32)
1733
- display_name String? @db.VarChar(32)
1734
- description String? @db.VarChar(256)
1735
- amount Decimal @default(0.0000) @db.Decimal(10, 4)
1736
- ax_createdatetime DateTime? @db.Timestamp(6)
1737
- ax_createuserid BigInt @default(0)
1738
- ax_updatedatetime DateTime? @db.Timestamp(6)
1739
- ax_updateuserid BigInt @default(0)
1740
- ax_isdelete Boolean? @default(false)
1741
- ax_istrash Boolean? @default(false)
1742
- ax_accountid BigInt @default(0)
1743
-
1744
- @@schema("public")
1745
- }
1746
-
1747
- model cl_rate_rule_items {
1748
- rate_rule_item_id BigInt @id @default(autoincrement())
1749
- rate_rule_id BigInt @default(0)
1750
- min_value Decimal @default(0.0000) @db.Decimal(10, 4)
1751
- max_value Decimal @default(0.0000) @db.Decimal(10, 4)
1752
- item_rate Decimal @default(0.0000) @db.Decimal(10, 4)
1753
- ax_createdatetime DateTime? @db.Timestamp(6)
1754
- ax_createuserid BigInt @default(0)
1755
- ax_updatedatetime DateTime? @db.Timestamp(6)
1756
- ax_updateuserid BigInt @default(0)
1757
- ax_isdelete Boolean? @default(false)
1758
- ax_istrash Boolean? @default(false)
1759
- ax_accountid BigInt @default(0)
1760
-
1761
- @@schema("public")
1762
- }
1763
-
1764
- model cl_rate_rule_props {
1765
- rate_rule_props_id BigInt @id @default(autoincrement())
1766
- rate_rule_id BigInt @default(0)
1767
- rate_rule_item_id BigInt?
1768
- type String? @db.VarChar(32)
1769
- props_value String? @db.VarChar(256)
1770
- props_id BigInt @default(0)
1771
- props_numeric Decimal @default(0.0000) @db.Decimal(10, 4)
1772
- props_timestamp DateTime? @db.Timestamp(6)
1773
- ax_createdatetime DateTime? @db.Timestamp(6)
1774
- ax_createuserid BigInt @default(0)
1775
- ax_updatedatetime DateTime? @db.Timestamp(6)
1776
- ax_updateuserid BigInt @default(0)
1777
- ax_isdelete Boolean? @default(false)
1778
- ax_istrash Boolean? @default(false)
1779
- ax_accountid BigInt @default(0)
1780
- props_integer BigInt?
1781
-
1782
- @@schema("public")
1783
- }
1784
-
1785
- model cl_rate_rules {
1786
- rate_rule_id BigInt @id @default(autoincrement())
1787
- rule_name String? @db.VarChar(200)
1788
- type String? @db.VarChar(32)
1789
- calculation_type String? @db.VarChar(32)
1790
- description String? @db.VarChar(256)
1791
- status Int? @default(0) @db.SmallInt
1792
- ax_createdatetime DateTime? @db.Timestamp(6)
1793
- ax_createuserid BigInt @default(0)
1794
- ax_updatedatetime DateTime? @db.Timestamp(6)
1795
- ax_updateuserid BigInt @default(0)
1796
- ax_isdelete Boolean? @default(false)
1797
- ax_istrash Boolean? @default(false)
1798
- ax_accountid BigInt @default(0)
1799
- base_fee Decimal? @db.Decimal
1800
-
1801
- @@schema("public")
1802
- }
1803
-
1804
- model cl_rates {
1805
- rate_id BigInt @id @default(autoincrement())
1806
- rate_name String? @db.VarChar(200)
1807
- type String? @db.VarChar(32)
1808
- scope_type String? @db.VarChar(32)
1809
- scope_id BigInt? @default(0)
1810
- description String? @db.VarChar(256)
1811
- status Int? @default(0) @db.SmallInt
1812
- ax_createdatetime DateTime? @db.Timestamp(6)
1813
- ax_createuserid BigInt @default(0)
1814
- ax_updatedatetime DateTime? @db.Timestamp(6)
1815
- ax_updateuserid BigInt @default(0)
1816
- ax_isdelete Boolean? @default(false)
1817
- ax_istrash Boolean? @default(false)
1818
- ax_accountid BigInt @default(0)
10
+ // ============================================================
11
+ // AUTH & ACCESS
12
+ // ============================================================
1819
13
 
1820
- @@schema("public")
1821
- }
1822
-
1823
- model cl_ratings {
1824
- rating_id BigInt @id @default(autoincrement())
1825
- target String @db.VarChar(255)
1826
- module String @db.VarChar(255)
1827
- rating_ref String @db.VarChar(255)
1828
- type String @db.VarChar(100)
1829
- evaluator_id BigInt @default(0)
1830
- recipient_id BigInt @default(0)
1831
- description String?
1832
- ax_createdatetime DateTime? @db.Timestamp(6)
1833
- ax_createuserid BigInt @default(0)
1834
- ax_updatedatetime DateTime? @db.Timestamp(6)
1835
- ax_updateuserid BigInt @default(0)
1836
- ax_isdelete Boolean? @default(false)
1837
- ax_istrash Boolean? @default(false)
1838
- ax_accountid BigInt @default(0)
1839
- rating_numeric Decimal? @default(0) @db.Decimal(10, 1)
1840
- rating_value String? @db.VarChar(256)
1841
-
1842
- @@schema("public")
1843
- }
1844
-
1845
- model cl_repositories {
1846
- repository_id BigInt @id(map: "cl_repository_pkey") @default(autoincrement())
1847
- repo_number String? @db.VarChar(32)
1848
- number_alternative String? @db.VarChar(256)
1849
- number_seal String? @db.VarChar(32)
1850
- number_marking String? @db.VarChar(32)
1851
- repo_date DateTime? @db.Date
1852
- load_date DateTime? @db.Date
1853
- person String? @db.VarChar(256)
1854
- provider String? @db.VarChar(256)
1855
- type String? @db.VarChar(32)
1856
- remark String? @db.VarChar(256)
1857
- ax_createdatetime DateTime? @db.Timestamp(6)
1858
- ax_createuserid BigInt @default(0)
1859
- ax_updatedatetime DateTime? @db.Timestamp(6)
1860
- ax_updateuserid BigInt @default(0)
1861
- ax_isdelete Boolean? @default(false)
1862
- ax_istrash Boolean? @default(false)
1863
- ax_accountid BigInt @default(0)
1864
- eta_date DateTime? @db.Date
1865
-
1866
- @@schema("public")
1867
- }
1868
-
1869
- model cl_repository_injection_props {
1870
- repository_injection_props_id BigInt @id @default(autoincrement())
1871
- props_module String? @db.VarChar(200)
1872
- props_ref String? @db.VarChar(200)
1873
- is_multiple Int? @default(0) @db.SmallInt
1874
- repository_id BigInt @default(0)
1875
- repository_item_id BigInt @default(0)
1876
- type String? @db.VarChar(200)
1877
- props_field String? @db.VarChar(200)
1878
- props_value String? @db.VarChar(256)
1879
- props_id BigInt? @default(0)
1880
- props_text String?
1881
- props_numeric Decimal? @default(0.0000) @db.Decimal(20, 4)
1882
- ax_createdatetime DateTime? @db.Timestamp(6)
1883
- ax_createuserid BigInt @default(0)
1884
- ax_updatedatetime DateTime? @db.Timestamp(6)
1885
- ax_updateuserid BigInt @default(0)
1886
- ax_isdelete Boolean? @default(false)
1887
- ax_istrash Boolean? @default(false)
1888
- ax_accountid BigInt @default(0)
1889
- props_date DateTime? @db.Date
1890
- props_date_time DateTime? @db.Timestamp(6)
1891
- props_timestamp BigInt?
1892
- props_integer BigInt?
1893
- has_multiple_inline Int? @default(0) @db.SmallInt
1894
-
1895
- @@index([repository_id, repository_item_id, props_module, props_ref, type, ax_isdelete], map: "idx_repository_injection_props_repository_id_type_ref_module")
1896
- @@schema("public")
1897
- }
1898
-
1899
- model cl_repository_items {
1900
- repository_item_id BigInt @id @default(autoincrement())
1901
- repository_id BigInt @default(0)
1902
- item_id BigInt @default(0)
1903
- quantity Decimal? @default(0.0000) @db.Decimal(10, 4)
1904
- item_name String? @db.VarChar(255)
1905
- code String? @db.VarChar(32)
1906
- description String? @db.VarChar(256)
1907
- remark String? @db.VarChar(256)
1908
- ax_createdatetime DateTime? @db.Timestamp(6)
1909
- ax_createuserid BigInt @default(0)
1910
- ax_updatedatetime DateTime? @db.Timestamp(6)
1911
- ax_updateuserid BigInt @default(0)
1912
- ax_isdelete Boolean? @default(false)
1913
- ax_istrash Boolean? @default(false)
1914
- ax_accountid BigInt @default(0)
1915
- unit_amount Decimal? @db.Decimal
1916
- total_amount Decimal? @db.Decimal
1917
- uom String? @db.VarChar(256)
1918
- uom_id BigInt?
1919
-
1920
- @@schema("public")
1921
- }
1922
-
1923
- model cl_repository_props {
1924
- repository_props_id BigInt @id @default(autoincrement())
1925
- repository_id BigInt @default(0)
1926
- repository_item_id BigInt?
1927
- type String? @db.VarChar(32)
1928
- props_value String? @db.VarChar(256)
1929
- props_id BigInt @default(0)
1930
- props_numeric Decimal @default(0.0000) @db.Decimal(20, 4)
1931
- props_timestamp DateTime? @db.Timestamp(6)
1932
- ax_createdatetime DateTime? @db.Timestamp(6)
1933
- ax_createuserid BigInt @default(0)
1934
- ax_updatedatetime DateTime? @db.Timestamp(6)
1935
- ax_updateuserid BigInt @default(0)
1936
- ax_isdelete Boolean? @default(false)
1937
- ax_istrash Boolean? @default(false)
1938
- ax_accountid BigInt @default(0)
1939
- props_integer BigInt?
1940
-
1941
- @@schema("public")
1942
- }
1943
-
1944
- model cl_repository_status {
1945
- repository_status_id BigInt @id(map: "cl_repository_status_pk") @default(autoincrement())
1946
- repository_id BigInt?
1947
- repository_item_id Int?
1948
- type String? @db.VarChar(32)
1949
- status Int? @db.SmallInt
1950
- ax_createdatetime DateTime? @db.Timestamp(6)
1951
- ax_createuserid BigInt?
1952
- ax_updatedatetime DateTime? @db.Timestamp(6)
1953
- ax_updateuserid BigInt?
1954
- ax_isdelete Boolean?
1955
- ax_istrash Boolean?
1956
- ax_accountid BigInt?
1957
-
1958
- @@schema("public")
1959
- }
1960
-
1961
- model cl_role_permissions {
1962
- role_permission_id BigInt @id @default(autoincrement())
1963
- role_id BigInt @default(autoincrement())
1964
- permission_type String @db.VarChar(128)
1965
- permission_name String? @db.VarChar(128)
1966
- scope_type String @db.VarChar(128)
1967
- scope_name String @db.VarChar(128)
1968
- ax_createdatetime DateTime? @db.Timestamp(6)
1969
- ax_createuserid BigInt @default(0)
1970
- ax_updatedatetime DateTime? @db.Timestamp(6)
1971
- ax_updateuserid BigInt @default(0)
1972
- ax_isdelete Boolean? @default(false)
1973
- ax_istrash Boolean? @default(false)
1974
- ax_accountid BigInt @default(0)
1975
- is_custom Int? @default(0) @db.SmallInt
1976
-
1977
- @@schema("public")
1978
- }
1979
-
1980
- model cl_role_users {
1981
- role_user_id BigInt @id @default(autoincrement())
1982
- user_id BigInt @default(autoincrement())
1983
- role_id BigInt @default(autoincrement())
1984
- ax_createdatetime DateTime? @db.Timestamp(6)
1985
- ax_createuserid BigInt @default(0)
1986
- ax_updatedatetime DateTime? @db.Timestamp(6)
1987
- ax_updateuserid BigInt @default(0)
1988
- ax_isdelete Boolean? @default(false)
1989
- ax_istrash Boolean? @default(false)
1990
- ax_accountid BigInt @default(0)
1991
-
1992
- @@schema("public")
1993
- }
1994
-
1995
- model cl_roles {
1996
- role_id BigInt @id @default(autoincrement())
1997
- role_name String @db.VarChar(128)
1998
- role_type String @db.VarChar(128)
1999
- description String?
2000
- status Int @default(0) @db.SmallInt
2001
- ax_createdatetime DateTime? @db.Timestamp(6)
2002
- ax_createuserid BigInt @default(0)
2003
- ax_updatedatetime DateTime? @db.Timestamp(6)
2004
- ax_updateuserid BigInt @default(0)
2005
- ax_isdelete Boolean? @default(false)
2006
- ax_istrash Boolean? @default(false)
2007
- ax_accountid BigInt @default(0)
2008
-
2009
- @@schema("public")
2010
- }
2011
-
2012
- model cl_sales {
2013
- sales_id BigInt @id @default(autoincrement())
2014
- customer_id BigInt @default(0)
2015
- doc_number String? @db.VarChar(32)
2016
- doc_date DateTime? @db.Date
2017
- customer_code String? @db.VarChar(64)
2018
- customer_company String? @db.VarChar(64)
2019
- customer_address String? @db.VarChar(1024)
2020
- customer_credit_limit String? @db.VarChar(64)
2021
- customer_agent String? @db.VarChar(256)
2022
- salesperson_id BigInt @default(0)
2023
- reference String? @db.VarChar(256)
2024
- branch_id BigInt @default(0)
2025
- branch_name String? @db.VarChar(256)
2026
- branch_address String? @db.VarChar(1024)
2027
- state_id BigInt @default(0)
2028
- area_id BigInt @default(0)
2029
- postcode String? @db.VarChar(16)
2030
- total_price Decimal @default(0.00) @db.Decimal(10, 2)
2031
- status Int? @db.SmallInt
2032
- ax_createdatetime DateTime? @db.Timestamp(6)
2033
- ax_createuserid BigInt @default(0)
2034
- ax_updatedatetime DateTime? @db.Timestamp(6)
2035
- ax_updateuserid BigInt @default(0)
2036
- ax_isdelete Boolean? @default(false)
2037
- ax_istrash Boolean? @default(false)
2038
- ax_accountid BigInt @default(0)
2039
-
2040
- @@schema("public")
2041
- }
2042
-
2043
- model cl_sales_items {
2044
- sales_item_id BigInt @id @default(autoincrement())
2045
- sales_id BigInt @default(0)
2046
- item_id BigInt @default(0)
2047
- item_code String? @db.VarChar(32)
2048
- item_description String? @db.VarChar(256)
2049
- description_2 String?
2050
- remark_2 String? @db.VarChar(1024)
2051
- packing_1 String? @db.VarChar(256)
2052
- packing_2 String? @db.VarChar(256)
2053
- sales_price Decimal @db.Decimal(10, 4)
2054
- quantity Decimal @db.Decimal(10, 4)
2055
- discount Decimal @db.Decimal(10, 2)
2056
- discount_text String? @db.VarChar(256)
2057
- uom String? @db.VarChar(256)
2058
- note String
2059
- sorting BigInt @default(0)
2060
- ax_createdatetime DateTime? @db.Timestamp(6)
2061
- ax_createuserid BigInt @default(0)
2062
- ax_updatedatetime DateTime? @db.Timestamp(6)
2063
- ax_updateuserid BigInt @default(0)
2064
- ax_isdelete Boolean? @default(false)
2065
- ax_istrash Boolean? @default(false)
2066
- ax_accountid BigInt @default(0)
2067
-
2068
- @@schema("public")
2069
- }
2070
-
2071
- model cl_scheduler_tasks {
2072
- scheduler_task_id BigInt @id @default(autoincrement())
2073
- task_key String @db.VarChar(256)
2074
- name String? @db.VarChar(256)
2075
- description String? @db.VarChar(256)
2076
- status Int @default(0) @db.SmallInt
2077
- ax_createdatetime DateTime? @db.Timestamp(6)
2078
- ax_createuserid BigInt @default(0)
2079
- ax_updatedatetime DateTime? @db.Timestamp(6)
2080
- ax_updateuserid BigInt @default(0)
2081
- ax_isdelete Boolean? @default(false)
2082
- ax_istrash Boolean? @default(false)
2083
- ax_accountid BigInt @default(0)
2084
- integration_id String? @db.VarChar(256)
2085
-
2086
- @@schema("public")
2087
- }
2088
-
2089
- model cl_setting_amounts {
2090
- setting_amount_id BigInt @id(map: "cl_setting_amounts_pk") @default(autoincrement())
2091
- setting_id BigInt?
2092
- setting_item_id Int?
2093
- type String? @db.VarChar(32)
2094
- display_name String? @db.VarChar(32)
2095
- description String? @db.VarChar(256)
2096
- amount Decimal? @db.Decimal(10, 4)
2097
- ax_createdatetime DateTime? @db.Timestamp(6)
2098
- ax_createuserid BigInt?
2099
- ax_updatedatetime DateTime? @db.Timestamp(6)
2100
- ax_updateuserid BigInt?
2101
- ax_isdelete Boolean?
2102
- ax_istrash Boolean?
2103
- ax_accountid BigInt?
2104
-
2105
- @@schema("public")
2106
- }
2107
-
2108
- model cl_setting_items {
2109
- setting_item_id BigInt @id(map: "cl_setting_items_pk") @default(autoincrement())
2110
- setting_id BigInt?
2111
- item_name String? @db.VarChar(255)
2112
- description String? @db.VarChar(256)
2113
- ax_createdatetime DateTime? @db.Timestamp(6)
2114
- ax_createuserid BigInt?
2115
- ax_updatedatetime DateTime? @db.Timestamp(6)
2116
- ax_updateuserid BigInt?
2117
- ax_isdelete Boolean?
2118
- ax_istrash Boolean?
2119
- ax_accountid BigInt?
2120
-
2121
- @@schema("public")
2122
- }
2123
-
2124
- model cl_setting_props {
2125
- setting_props_id BigInt @id(map: "cl_setting_props_pk") @default(autoincrement())
2126
- setting_id BigInt?
2127
- setting_item_id BigInt?
2128
- props_value String? @db.VarChar(256)
2129
- type String? @db.VarChar(32)
2130
- props_id BigInt?
2131
- props_numeric Decimal? @db.Decimal(10, 4)
2132
- props_timestamp DateTime? @db.Timestamp(6)
2133
- ax_createdatetime DateTime? @db.Timestamp(6)
2134
- ax_createuserid BigInt?
2135
- ax_updatedatetime DateTime? @db.Timestamp(6)
2136
- ax_updateuserid BigInt?
2137
- ax_isdelete Boolean?
2138
- ax_istrash Boolean?
2139
- ax_accountid BigInt?
2140
- props_integer BigInt?
2141
-
2142
- @@schema("public")
2143
- }
2144
-
2145
- model cl_setting_status {
2146
- setting_status_id BigInt @id(map: "cl_setting_status_pk") @default(autoincrement())
2147
- setting_id BigInt?
2148
- setting_item_id Int?
2149
- type String? @db.VarChar(32)
2150
- status Int? @db.SmallInt
2151
- ax_createdatetime DateTime? @db.Timestamp(6)
2152
- ax_createuserid BigInt?
2153
- ax_updatedatetime DateTime? @db.Timestamp(6)
2154
- ax_updateuserid BigInt?
2155
- ax_isdelete Boolean?
2156
- ax_istrash Boolean?
2157
- ax_accountid BigInt?
2158
-
2159
- @@schema("public")
2160
- }
2161
-
2162
- model cl_settings {
2163
- setting_id BigInt @id @default(autoincrement())
2164
- setting_type String? @db.VarChar(256)
2165
- setting_title String? @db.VarChar(256)
2166
- setting_key String? @db.VarChar(256)
2167
- setting_label String? @db.VarChar(256)
2168
- field_key String? @db.VarChar(256)
2169
- field_label String? @db.VarChar(256)
2170
- field_value String?
2171
- is_default Boolean?
2172
- ax_createdatetime DateTime? @db.Timestamp(6)
2173
- ax_createuserid BigInt?
2174
- ax_updatedatetime DateTime? @db.Timestamp(6)
2175
- ax_updateuserid BigInt?
2176
- ax_isdelete Boolean?
2177
- ax_istrash Boolean?
2178
- ax_accountid BigInt?
2179
-
2180
- @@schema("public")
2181
- }
2182
-
2183
- model cl_settings_old {
2184
- setting_id BigInt @id(map: "cl_settings_pk") @default(autoincrement())
2185
- setting_type String? @db.VarChar(32)
2186
- setting_name String? @db.VarChar(256)
2187
- setting_remark String? @db.VarChar(256)
2188
- ax_createdatetime DateTime? @db.Timestamp(6)
2189
- ax_createuserid BigInt?
2190
- ax_updatedatetime DateTime? @db.Timestamp(6)
2191
- ax_updateuserid BigInt?
2192
- ax_isdelete Boolean?
2193
- ax_istrash Boolean?
2194
- ax_accountid BigInt?
2195
-
2196
- @@schema("public")
2197
- }
2198
-
2199
- model cl_suppliers {
2200
- supplier_id BigInt @id @default(autoincrement())
2201
- user_id BigInt @default(0)
2202
- company_name String? @db.VarChar(100)
2203
- code String? @db.VarChar(64)
2204
- reg_no String? @db.VarChar(255)
2205
- address_1 String? @db.VarChar(255)
2206
- address_2 String? @db.VarChar(255)
2207
- postcode String? @db.VarChar(255)
2208
- state_id BigInt? @default(0)
2209
- area String? @db.VarChar(255)
2210
- country_id BigInt? @default(0)
2211
- bank_name String? @db.VarChar(255)
2212
- bank_acc String? @db.VarChar(255)
2213
- remark String? @db.VarChar(256)
2214
- gst_no String? @db.VarChar(32)
2215
- ax_createdatetime DateTime? @db.Timestamp(6)
2216
- ax_createuserid BigInt @default(0)
2217
- ax_updatedatetime DateTime? @db.Timestamp(6)
2218
- ax_updateuserid BigInt @default(0)
2219
- ax_isdelete Boolean? @default(false)
2220
- ax_istrash Boolean? @default(false)
2221
- ax_accountid BigInt @default(0)
2222
- contact String? @db.VarChar(20)
2223
- area_id BigInt?
2224
- type String? @db.VarChar(256)
2225
-
2226
- @@schema("public")
2227
- }
2228
-
2229
- model cl_transactions {
2230
- transaction_id BigInt @id @default(autoincrement())
2231
- type String @db.VarChar(100)
2232
- source_target String? @db.VarChar(255)
2233
- source_module String? @db.VarChar(255)
2234
- source_ref String? @db.VarChar(255)
2235
- source_refer_id BigInt? @default(0)
2236
- destination_target String? @db.VarChar(255)
2237
- destination_module String? @db.VarChar(255)
2238
- destination_ref String? @db.VarChar(255)
2239
- destination_refer_id BigInt? @default(0)
2240
- action String @db.VarChar(255)
2241
- transaction_amount Decimal? @default(0) @db.Decimal(10, 4)
2242
- reference_no String? @db.VarChar(256)
2243
- description String?
2244
- transaction_status String? @db.VarChar(255)
2245
- remark String?
2246
- ax_createdatetime DateTime? @db.Timestamp(6)
2247
- ax_createuserid BigInt @default(0)
2248
- ax_updatedatetime DateTime? @db.Timestamp(6)
2249
- ax_updateuserid BigInt @default(0)
2250
- ax_isdelete Boolean? @default(false)
2251
- ax_istrash Boolean? @default(false)
2252
- ax_accountid BigInt @default(0)
2253
- transaction_no String? @db.VarChar(256)
2254
- transaction_date DateTime? @db.Date
2255
- internal_reference_no String? @db.VarChar(256)
2256
- internal_remark String?
2257
-
2258
- @@schema("public")
2259
- }
2260
-
2261
- model cl_user_api_keys {
2262
- user_api_key_id BigInt @id @default(autoincrement())
2263
- user_id BigInt @default(0)
2264
- key_label String @db.VarChar(255)
2265
- api_key String @db.VarChar(32)
2266
- secret_key String @db.VarChar(32)
2267
- status Int @default(0) @db.SmallInt
2268
- expiry_date DateTime? @db.Timestamp(6)
2269
- ax_createdatetime DateTime? @db.Timestamp(6)
2270
- ax_createuserid BigInt @default(0)
2271
- ax_updatedatetime DateTime? @db.Timestamp(6)
2272
- ax_updateuserid BigInt @default(0)
2273
- ax_isdelete Boolean? @default(false)
2274
- ax_istrash Boolean? @default(false)
2275
- ax_accountid BigInt @default(0)
2276
- role_id Int? @default(0)
2277
-
2278
- @@schema("public")
2279
- }
2280
-
2281
- model cl_user_injection_props {
2282
- user_injection_props_id BigInt @id @default(autoincrement())
2283
- props_module String? @db.VarChar(200)
2284
- props_ref String? @db.VarChar(200)
2285
- is_multiple Int? @default(0) @db.SmallInt
2286
- user_id BigInt @default(0)
2287
- branch_id BigInt @default(0)
2288
- type String? @db.VarChar(200)
2289
- props_field String? @db.VarChar(200)
2290
- props_value String? @db.VarChar(256)
2291
- props_id BigInt? @default(0)
2292
- props_text String?
2293
- props_numeric Decimal? @default(0.0000) @db.Decimal(20, 4)
2294
- ax_createdatetime DateTime? @db.Timestamp(6)
2295
- ax_createuserid BigInt @default(0)
2296
- ax_updatedatetime DateTime? @db.Timestamp(6)
2297
- ax_updateuserid BigInt @default(0)
2298
- ax_isdelete Boolean? @default(false)
2299
- ax_istrash Boolean? @default(false)
2300
- ax_accountid BigInt @default(0)
2301
- member_id BigInt?
2302
- props_date DateTime? @db.Date
2303
- props_date_time DateTime? @db.Timestamp(6)
2304
- props_timestamp BigInt?
2305
- props_integer BigInt?
2306
- has_multiple_inline Int? @default(0) @db.SmallInt
2307
-
2308
- @@index([user_id], map: "idx_cl_user_injection_props_user_id")
2309
- @@index([branch_id, props_module, props_ref, type, ax_isdelete], map: "idx_user_injection_props_branch_id_type_ref_module")
2310
- @@index([user_id, props_module, props_ref, type, ax_isdelete], map: "idx_user_injection_props_user_id_type_ref_module")
2311
- @@schema("public")
2312
- }
2313
-
2314
- model cl_user_numbers {
2315
- user_number_id BigInt @id @default(autoincrement())
2316
- year_lbl String? @db.VarChar(10)
2317
- month_lbl String? @db.VarChar(255)
2318
- increment_no Int? @default(0)
2319
- type String? @db.VarChar(25)
2320
- ax_createdatetime DateTime? @db.Timestamp(6)
2321
- ax_createuserid BigInt @default(0)
2322
- ax_updatedatetime DateTime? @db.Timestamp(6)
2323
- ax_updateuserid BigInt @default(0)
2324
- ax_isdelete Boolean? @default(false)
2325
- ax_istrash Boolean? @default(false)
2326
- ax_accountid BigInt @default(0)
2327
-
2328
- @@schema("public")
2329
- }
2330
-
2331
- model cl_wallet_users {
2332
- wallet_user_id BigInt @id @default(autoincrement())
2333
- wallet_id BigInt @default(0)
2334
- user_id BigInt @default(0)
2335
- wallet_amount Decimal? @default(0) @db.Decimal(10, 4)
2336
- status Int @default(0) @db.SmallInt
2337
- ax_createdatetime DateTime? @db.Timestamp(6)
2338
- ax_createuserid BigInt @default(0)
2339
- ax_updatedatetime DateTime? @db.Timestamp(6)
2340
- ax_updateuserid BigInt @default(0)
2341
- ax_isdelete Boolean? @default(false)
2342
- ax_istrash Boolean? @default(false)
2343
- ax_accountid BigInt @default(0)
2344
-
2345
- @@schema("public")
14
+ model accounts {
15
+ account_id BigInt @id @default(autoincrement())
16
+ createdatetime DateTime? @db.Timestamptz(6)
17
+ createuserid BigInt @default(0)
18
+ updatedatetime DateTime? @db.Timestamptz(6)
19
+ updateuserid BigInt @default(0)
20
+ isdelete Boolean @default(false)
21
+ istrash Boolean @default(false)
22
+ accountid BigInt @default(0)
23
+ name String @db.VarChar(128)
24
+ status Boolean @default(false)
25
+ business_id BigInt @default(0)
26
+ owner_user_id BigInt @default(0)
27
+ account_code String @default("") @db.VarChar(128)
2346
28
  }
2347
29
 
2348
- model cl_wallets {
2349
- wallet_id BigInt @id @default(autoincrement())
2350
- name String @db.VarChar(256)
2351
- currency String? @db.VarChar(256)
2352
- currency_symbol String? @db.VarChar(256)
2353
- primary_wallet Int @default(0) @db.SmallInt
2354
- conversion_rate Decimal? @default(0) @db.Decimal(10, 4)
2355
- description String?
2356
- status Int @default(0) @db.SmallInt
2357
- ax_createdatetime DateTime? @db.Timestamp(6)
2358
- ax_createuserid BigInt @default(0)
2359
- ax_updatedatetime DateTime? @db.Timestamp(6)
2360
- ax_updateuserid BigInt @default(0)
2361
- ax_isdelete Boolean? @default(false)
2362
- ax_istrash Boolean? @default(false)
2363
- ax_accountid BigInt @default(0)
2364
- wallet_key String? @db.VarChar(255)
2365
-
2366
- @@schema("public")
30
+ model access_control_roles {
31
+ access_control_role_id BigInt @id @default(autoincrement())
32
+ createdatetime DateTime? @db.Timestamptz(6)
33
+ createuserid BigInt @default(0)
34
+ updatedatetime DateTime? @db.Timestamptz(6)
35
+ updateuserid BigInt @default(0)
36
+ isdelete Boolean @default(false)
37
+ istrash Boolean @default(false)
38
+ accountid BigInt @default(0)
39
+ name String @db.VarChar(128)
40
+ user_type String @db.VarChar(128)
41
+ description String?
42
+ status Boolean @default(true)
2367
43
  }
2368
44
 
2369
- model document_amounts_unuse {
2370
- document_amount_id BigInt @id(map: "cl_document_amount_pkey") @default(autoincrement())
2371
- document_id BigInt @default(0)
2372
- type String @db.VarChar(32)
2373
- display_name String? @db.VarChar(32)
2374
- description String? @db.VarChar(256)
2375
- amount Decimal @default(0.0000) @db.Decimal(20, 4)
2376
- ax_createdatetime DateTime? @db.Timestamp(6)
2377
- ax_createuserid BigInt @default(0)
2378
- ax_updatedatetime DateTime? @db.Timestamp(6)
2379
- ax_updateuserid BigInt @default(0)
2380
- ax_isdelete Boolean? @default(false)
2381
- ax_istrash Boolean? @default(false)
2382
- ax_accountid BigInt @default(0)
2383
-
2384
- @@index([document_amount_id], map: "idx_document_amounts_document_amount_id")
2385
- @@index([document_id], map: "idx_document_amounts_document_id")
2386
- @@index([type], map: "idx_document_amounts_type")
2387
- @@schema("public")
45
+ model access_control_role_policies {
46
+ access_control_role_policy_id BigInt @id @default(autoincrement())
47
+ createdatetime DateTime? @db.Timestamptz(6)
48
+ createuserid BigInt @default(0)
49
+ updatedatetime DateTime? @db.Timestamptz(6)
50
+ updateuserid BigInt @default(0)
51
+ isdelete Boolean @default(false)
52
+ istrash Boolean @default(false)
53
+ accountid BigInt @default(0)
54
+ permission_key String @db.VarChar(128)
55
+ access_control_role_id BigInt @default(0)
2388
56
  }
2389
57
 
2390
- model document_dependencies_unuse {
2391
- document_dependency_id BigInt @id(map: "cl_document_dependancies_pkey") @default(autoincrement())
2392
- document_id BigInt @default(0)
2393
- document_item_id BigInt? @default(0)
2394
- document_doc_id BigInt @default(0)
2395
- module String? @db.VarChar(255)
2396
- target String? @db.VarChar(255)
2397
- type String @db.VarChar(32)
2398
- target_id BigInt @default(0)
2399
- ax_createdatetime DateTime? @db.Timestamp(6)
2400
- ax_createuserid BigInt @default(0)
2401
- ax_updatedatetime DateTime? @db.Timestamp(6)
2402
- ax_updateuserid BigInt @default(0)
2403
- ax_isdelete Boolean? @default(false)
2404
- ax_istrash Boolean? @default(false)
2405
- ax_accountid BigInt @default(0)
2406
- dependency_ref String? @default("") @db.VarChar(255)
2407
-
2408
- @@schema("public")
58
+ model access_control_user_roles {
59
+ access_control_user_role_id BigInt @id @default(autoincrement())
60
+ createdatetime DateTime? @db.Timestamptz(6)
61
+ createuserid BigInt @default(0)
62
+ updatedatetime DateTime? @db.Timestamptz(6)
63
+ updateuserid BigInt @default(0)
64
+ isdelete Boolean @default(false)
65
+ istrash Boolean @default(false)
66
+ accountid BigInt @default(0)
67
+ access_control_role_id BigInt @default(0)
68
+ user_id BigInt @default(0)
2409
69
  }
2410
70
 
2411
- /// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
2412
- model document_documents {
2413
- document_document_id BigInt @id(map: "cl_document_docs_pkey") @default(autoincrement())
2414
- main_document_id BigInt @default(0)
2415
- document_id BigInt @default(0)
2416
- document_number String? @db.VarChar(32)
2417
- document_date DateTime? @db.Date
2418
- document_type String? @db.VarChar(32)
2419
- document_remark String? @db.VarChar(256)
2420
- createdatetime DateTime? @db.Timestamp(6)
71
+ model access_keys {
72
+ access_key_id BigInt @id @default(autoincrement())
73
+ createdatetime DateTime? @db.Timestamptz(6)
2421
74
  createuserid BigInt @default(0)
2422
- updatedatetime DateTime? @db.Timestamp(6)
75
+ updatedatetime DateTime? @db.Timestamptz(6)
2423
76
  updateuserid BigInt @default(0)
2424
- isdelete Boolean? @default(false)
2425
- istrash Boolean? @default(false)
77
+ isdelete Boolean @default(false)
78
+ istrash Boolean @default(false)
2426
79
  accountid BigInt @default(0)
2427
- reference1_id BigInt? @default(0)
2428
- reference1_label String? @db.VarChar(256)
2429
- reference2_id BigInt? @default(0)
2430
- reference2_label String? @db.VarChar(256)
2431
- location_id BigInt @default(0)
2432
- main_document_type String? @db.VarChar(128)
2433
-
2434
- @@index([document_document_id, document_type], map: "cl_document_docs_document_id_doc_type_index")
2435
- @@index([document_id], map: "ids_document_docs_doc_id")
2436
- @@index([main_document_id, document_id, isdelete], map: "ids_document_docs_document_id_doc_id_isdelete")
2437
- @@schema("public")
80
+ key_id String? @unique @db.VarChar(64)
81
+ key_secret_encrypted String?
82
+ access_key_status String? @default("") @db.VarChar(64)
83
+ user_id BigInt @default(0)
84
+ user_type String? @db.VarChar(64)
85
+ is_default Boolean @default(false)
2438
86
  }
2439
87
 
2440
- model document_injection_field_items_unuse {
2441
- document_injection_field_item_id BigInt @id(map: "cl_document_injection_field_items_pkey") @default(autoincrement())
2442
- document_injection_field_id BigInt @default(autoincrement())
2443
- field_name String? @db.VarChar(200)
2444
- field_value String? @db.VarChar(256)
2445
- field_id BigInt @default(0)
2446
- field_text String?
2447
- field_numeric Decimal @default(0.0000) @db.Decimal(20, 4)
2448
- field_timestamp BigInt?
2449
- field_date DateTime? @db.Date
2450
- field_date_time DateTime? @db.Timestamp(6)
2451
- ax_createdatetime DateTime? @db.Timestamp(6)
2452
- ax_createuserid BigInt @default(0)
2453
- ax_updatedatetime DateTime? @db.Timestamp(6)
2454
- ax_updateuserid BigInt @default(0)
2455
- ax_isdelete Boolean? @default(false)
2456
- ax_istrash Boolean? @default(false)
2457
- ax_accountid BigInt @default(0)
2458
-
2459
- @@schema("public")
88
+ model one_time_codes {
89
+ one_time_code_id BigInt @id @default(autoincrement())
90
+ createdatetime DateTime? @db.Timestamptz(6)
91
+ createuserid BigInt @default(0)
92
+ updatedatetime DateTime? @db.Timestamptz(6)
93
+ updateuserid BigInt @default(0)
94
+ isdelete Boolean @default(false)
95
+ istrash Boolean @default(false)
96
+ accountid BigInt @default(0)
97
+ field_ref String? @db.VarChar(128)
98
+ field_module String? @db.VarChar(128)
99
+ code String @db.VarChar(128)
100
+ code_type String @db.VarChar(50)
101
+ email_address String? @db.VarChar(255)
102
+ mobile_number String? @db.VarChar(20)
103
+ expires_at DateTime @db.Timestamptz(6)
104
+ used_at DateTime? @db.Timestamptz(6)
105
+ user_id BigInt @default(0)
106
+ user_type String? @db.VarChar(64)
107
+ code_status String @db.VarChar(64)
108
+ purpose_type String @db.VarChar(64)
2460
109
  }
2461
110
 
2462
- model document_injection_props_unuse {
2463
- document_injection_props_id BigInt @id(map: "cl_document_injection_props_pkey") @default(autoincrement())
2464
- props_module String? @db.VarChar(200)
2465
- props_ref String? @db.VarChar(200)
2466
- is_multiple Int? @default(0) @db.SmallInt
2467
- document_id BigInt @default(0)
2468
- document_item_id BigInt @default(0)
2469
- document_doc_id BigInt @default(0)
2470
- type String? @db.VarChar(200)
2471
- props_field String? @db.VarChar(200)
2472
- props_value String? @db.VarChar(256)
2473
- props_id BigInt? @default(0)
2474
- props_text String?
2475
- props_numeric Decimal? @default(0.0000) @db.Decimal(20, 4)
2476
- ax_createdatetime DateTime? @db.Timestamp(6)
2477
- ax_createuserid BigInt @default(0)
2478
- ax_updatedatetime DateTime? @db.Timestamp(6)
2479
- ax_updateuserid BigInt @default(0)
2480
- ax_isdelete Boolean? @default(false)
2481
- ax_istrash Boolean? @default(false)
2482
- ax_accountid BigInt @default(0)
2483
- props_date DateTime? @db.Date
2484
- props_date_time DateTime? @db.Timestamp(6)
2485
- props_timestamp BigInt?
2486
- props_integer BigInt?
2487
- has_multiple_inline Int? @default(0) @db.SmallInt
2488
-
2489
- @@index([document_id, props_module, props_ref, document_item_id, type, ax_isdelete], map: "idx_document_injection_props_doc_id_type_ref_module")
2490
- @@index([type], map: "idx_document_injection_props_type")
2491
- @@schema("public")
2492
- }
111
+ // ============================================================
112
+ // USERS
113
+ // ============================================================
2493
114
 
2494
- model document_locations {
2495
- document_location_id BigInt @id @default(autoincrement())
115
+ model users {
116
+ user_id BigInt @id @default(autoincrement())
2496
117
  createdatetime DateTime? @db.Timestamptz(6)
2497
118
  createuserid BigInt @default(0)
2498
119
  updatedatetime DateTime? @db.Timestamptz(6)
2499
120
  updateuserid BigInt @default(0)
2500
- isdelete Boolean? @default(false)
2501
- istrash Boolean? @default(false)
121
+ isdelete Boolean @default(false)
122
+ istrash Boolean @default(false)
2502
123
  accountid BigInt @default(0)
2503
- document_id BigInt @default(0)
2504
- type String @db.VarChar(32)
2505
- location_id BigInt @default(0)
2506
-
2507
- @@schema("public")
2508
- }
2509
-
2510
- model document_numbers_unuse {
2511
- document_number_id BigInt @id(map: "cl_doc_numbers_pkey") @default(autoincrement())
2512
- year_lbl String? @db.VarChar(10)
2513
- month_lbl String? @db.VarChar(255)
2514
- increment_no Int? @default(0)
2515
- type String? @db.VarChar(25)
2516
- createdatetime DateTime? @db.Timestamp(6)
2517
- createuserid BigInt @default(0)
2518
- updatedatetime DateTime? @db.Timestamp(6)
2519
- updateuserid BigInt @default(0)
2520
- isdelete Boolean? @default(false)
2521
- istrash Boolean? @default(false)
2522
- accountid BigInt @default(0)
2523
-
2524
- @@schema("public")
2525
- }
2526
-
2527
- model document_props_unuse {
2528
- document_props_id BigInt @id(map: "cl_document_props_pkey") @default(autoincrement())
2529
- document_id BigInt @default(0)
2530
- document_item_id BigInt?
2531
- type String? @db.VarChar(200)
2532
- props_value String? @db.VarChar(256)
2533
- props_id BigInt @default(0)
2534
- props_numeric Decimal @default(0.0000) @db.Decimal(20, 4)
2535
- props_timestamp DateTime? @db.Timestamp(6)
2536
- ax_createdatetime DateTime? @db.Timestamp(6)
2537
- ax_createuserid BigInt @default(0)
2538
- ax_updatedatetime DateTime? @db.Timestamp(6)
2539
- ax_updateuserid BigInt @default(0)
2540
- ax_isdelete Boolean? @default(false)
2541
- ax_istrash Boolean? @default(false)
2542
- ax_accountid BigInt @default(0)
2543
- document_doc_id BigInt?
2544
- props_text String?
2545
- props_integer BigInt?
2546
-
2547
- @@index([type], map: "cl_document_props_type_index", type: Hash)
2548
- @@schema("public")
2549
- }
2550
-
2551
- model document_status_unuse {
2552
- document_status_id BigInt @id(map: "cl_document_status_pkey") @default(autoincrement())
2553
- document_id BigInt @default(0)
2554
- type String @db.VarChar(32)
2555
- status Int @default(0) @db.SmallInt
2556
- ax_createdatetime DateTime? @db.Timestamp(6)
2557
- ax_createuserid BigInt @default(0)
2558
- ax_updatedatetime DateTime? @db.Timestamp(6)
2559
- ax_updateuserid BigInt @default(0)
2560
- ax_isdelete Boolean? @default(false)
2561
- ax_istrash Boolean? @default(false)
2562
- ax_accountid BigInt @default(0)
2563
- document_item_id BigInt @default(0)
2564
- document_doc_id BigInt?
2565
-
2566
- @@index([document_id, type], map: "ids_document_status_document_id_type")
2567
- @@index([document_id, type], map: "idx_document_status_document_id_type_rdoverifyout")
2568
- @@schema("public")
2569
- }
2570
-
2571
- model document_totals {
2572
- document_total_id BigInt @id(map: "cl_document_adjustments_pkey") @default(autoincrement())
2573
- total_type String? @db.VarChar(128)
2574
- operation String? @db.VarChar(128)
2575
- document_id BigInt @default(0)
2576
- refer_id BigInt? @default(0)
2577
- description String?
2578
- total_amount Decimal? @default(0.00) @db.Decimal(10, 2)
2579
- total_percentage Decimal? @default(0.00) @db.Decimal(10, 2)
2580
- createdatetime DateTime? @db.Timestamp(6)
2581
- createuserid BigInt @default(0)
2582
- updatedatetime DateTime? @db.Timestamp(6)
2583
- updateuserid BigInt @default(0)
2584
- isdelete Boolean? @default(false)
2585
- istrash Boolean? @default(false)
2586
- accountid BigInt @default(0)
2587
- type String? @db.VarChar
2588
-
2589
- @@schema("public")
2590
- }
2591
-
2592
- model number_date_sequences {
2593
- number_date_sequence_id BigInt @id @default(autoincrement())
2594
- createdatetime DateTime? @db.Timestamptz(6)
2595
- createuserid BigInt @default(0)
2596
- updatedatetime DateTime? @db.Timestamptz(6)
2597
- updateuserid BigInt @default(0)
2598
- isdelete Boolean? @default(false)
2599
- istrash Boolean? @default(false)
2600
- accountid BigInt @default(0)
2601
- field_ref String? @db.VarChar(128)
2602
- field_module String? @db.VarChar(128)
2603
- year_label String? @db.VarChar(10)
2604
- month_label String? @db.VarChar(255)
2605
- day_label String? @db.VarChar(255)
2606
- increment_no Int? @default(0)
2607
-
2608
- @@schema("public")
124
+ login_username String? @db.VarChar(30)
125
+ login_password String?
126
+ user_type String? @db.VarChar(255)
127
+ firstname String? @db.VarChar(50)
128
+ lastname String? @db.VarChar(50)
129
+ contact_country_code Int @default(0)
130
+ contact_phone_number String? @db.VarChar(40)
131
+ email String? @db.VarChar(256)
132
+ address String? @db.VarChar(512)
133
+ parent_user_id BigInt @default(0)
134
+ status Boolean @default(true)
2609
135
  }
2610
136
 
2611
137
  model operators {
@@ -2614,99 +140,94 @@ model operators {
2614
140
  createuserid BigInt @default(0)
2615
141
  updatedatetime DateTime? @db.Timestamptz(6)
2616
142
  updateuserid BigInt @default(0)
2617
- isdelete Boolean? @default(false)
2618
- istrash Boolean? @default(false)
143
+ isdelete Boolean @default(false)
144
+ istrash Boolean @default(false)
2619
145
  accountid BigInt @default(0)
2620
146
  user_id BigInt @default(0)
147
+ }
148
+
149
+ model administrators {
150
+ administrator_id BigInt @id @default(autoincrement())
151
+ createdatetime DateTime? @db.Timestamptz(6)
152
+ createuserid BigInt @default(0)
153
+ updatedatetime DateTime? @db.Timestamptz(6)
154
+ updateuserid BigInt @default(0)
155
+ isdelete Boolean @default(false)
156
+ istrash Boolean @default(false)
157
+ accountid BigInt @default(0)
158
+ user_id BigInt @default(0)
159
+ is_owner Boolean @default(false)
160
+ }
2621
161
 
2622
- @@schema("public")
162
+ model customers {
163
+ customer_id BigInt @id @default(autoincrement())
164
+ createdatetime DateTime? @db.Timestamptz(6)
165
+ createuserid BigInt @default(0)
166
+ updatedatetime DateTime? @db.Timestamptz(6)
167
+ updateuserid BigInt @default(0)
168
+ isdelete Boolean @default(false)
169
+ istrash Boolean @default(false)
170
+ accountid BigInt @default(0)
171
+ user_id BigInt @default(0)
172
+ company_name String? @db.VarChar(256)
173
+ code String? @db.VarChar(64)
174
+ account_code String? @db.VarChar(64)
175
+ reg_no String? @db.VarChar(128)
176
+ secondary_reg_no String? @db.VarChar(256)
177
+ tidentification_no String? @db.VarChar(256)
178
+ tregistration_no String? @db.VarChar(256)
179
+ remark String? @db.VarChar(256)
2623
180
  }
2624
181
 
2625
- model drivers {
2626
- driver_id BigInt @id(map: "cl_drivers_pkey") @default(autoincrement())
2627
- user_id BigInt @default(0)
2628
- company_name String? @db.VarChar(100)
2629
- remark String? @db.VarChar(256)
2630
- createdatetime DateTime? @db.Timestamp(6)
182
+ model suppliers {
183
+ supplier_id BigInt @id @default(autoincrement())
184
+ createdatetime DateTime? @db.Timestamptz(6)
2631
185
  createuserid BigInt @default(0)
2632
- updatedatetime DateTime? @db.Timestamp(6)
186
+ updatedatetime DateTime? @db.Timestamptz(6)
2633
187
  updateuserid BigInt @default(0)
2634
- isdelete Boolean? @default(false)
2635
- istrash Boolean? @default(false)
188
+ isdelete Boolean @default(false)
189
+ istrash Boolean @default(false)
2636
190
  accountid BigInt @default(0)
2637
-
2638
- @@schema("public")
2639
- }
2640
-
2641
- model members {
2642
- member_id BigInt @id(map: "cl_members_pkey") @default(autoincrement())
2643
191
  user_id BigInt @default(0)
192
+ type String? @db.VarChar(256)
2644
193
  company_name String? @db.VarChar(100)
194
+ contact String? @db.VarChar(20)
2645
195
  code String? @db.VarChar(64)
2646
- address_1 String? @db.VarChar(255)
2647
- address_2 String? @db.VarChar(255)
2648
- postcode String? @db.VarChar(255)
2649
- state_id BigInt? @default(0)
2650
- area String? @db.VarChar(255)
2651
- country_id BigInt? @default(0)
2652
- remark String? @db.VarChar(256)
2653
- createdatetime DateTime? @db.Timestamp(6)
2654
- createuserid BigInt @default(0)
2655
- updatedatetime DateTime? @db.Timestamp(6)
2656
- updateuserid BigInt @default(0)
2657
- isdelete Boolean? @default(false)
2658
- istrash Boolean? @default(false)
2659
- accountid BigInt @default(0)
2660
- area_id BigInt?
2661
- identity_no String? @db.VarChar(255)
2662
- gender String? @db.VarChar
2663
- dob DateTime? @db.Date
2664
-
2665
- @@schema("public")
2666
- }
2667
-
2668
- model access_keys {
2669
- access_key_id BigInt @id(map: "access_keys_pkey1") @default(autoincrement())
2670
- createdatetime DateTime? @db.Timestamptz(6)
2671
- createuserid BigInt @default(0)
2672
- updatedatetime DateTime? @db.Timestamptz(6)
2673
- updateuserid BigInt @default(0)
2674
- isdelete Boolean? @default(false)
2675
- istrash Boolean? @default(false)
2676
- accountid BigInt @default(0)
2677
- key_id String? @unique(map: "access_keys_key_id_key1") @db.VarChar(64)
2678
- key_secret_encrypted String?
2679
- access_key_status String? @default("") @db.VarChar(64)
2680
- user_id BigInt? @default(0)
2681
- user_type String? @db.VarChar(64)
2682
- is_default Boolean @default(false)
2683
-
2684
- @@schema("public")
2685
- }
2686
-
2687
- model one_time_codes {
2688
- one_time_code_id BigInt @id @default(autoincrement())
2689
- createdatetime DateTime? @db.Timestamptz(6)
2690
- createuserid BigInt @default(0)
2691
- updatedatetime DateTime? @db.Timestamptz(6)
2692
- updateuserid BigInt @default(0)
2693
- isdelete Boolean? @default(false)
2694
- istrash Boolean? @default(false)
2695
- accountid BigInt @default(0)
2696
- field_ref String? @db.VarChar(128)
2697
- field_module String? @db.VarChar(128)
2698
- code String @db.VarChar(128)
2699
- code_type String @db.VarChar(50)
2700
- email_address String? @db.VarChar(255)
2701
- mobile_number String? @db.VarChar(20)
2702
- expires_at DateTime @db.Timestamptz(6)
2703
- used_at DateTime? @db.Timestamptz(6)
2704
- user_id BigInt? @default(0)
2705
- user_type String? @db.VarChar(64)
2706
- code_status String? @db.VarChar(64)
2707
- purpose_type String? @db.VarChar(128)
196
+ reg_no String? @db.VarChar(20)
197
+ address_1 String? @db.VarChar(255)
198
+ address_2 String? @db.VarChar(255)
199
+ postcode String? @db.VarChar(255)
200
+ state_id BigInt @default(0)
201
+ area_id BigInt @default(0)
202
+ country_id BigInt @default(0)
203
+ bank_name String? @db.VarChar(255)
204
+ bank_acc String? @db.VarChar(255)
205
+ remark String? @db.VarChar(256)
206
+ gst_no String? @db.VarChar(32)
207
+ }
2708
208
 
2709
- @@schema("public")
209
+ model members {
210
+ member_id BigInt @id @default(autoincrement())
211
+ createdatetime DateTime? @db.Timestamptz(6)
212
+ createuserid BigInt @default(0)
213
+ updatedatetime DateTime? @db.Timestamptz(6)
214
+ updateuserid BigInt @default(0)
215
+ isdelete Boolean @default(false)
216
+ istrash Boolean @default(false)
217
+ accountid BigInt @default(0)
218
+ user_id BigInt @default(0)
219
+ company_name String? @db.VarChar(100)
220
+ identity_no String? @db.VarChar(100)
221
+ gender String? @db.VarChar(100)
222
+ dob DateTime? @db.Date
223
+ code String? @db.VarChar(64)
224
+ address_1 String? @db.VarChar(255)
225
+ address_2 String? @db.VarChar(255)
226
+ postcode String? @db.VarChar(255)
227
+ state_id BigInt @default(0)
228
+ area_id BigInt @default(0)
229
+ country_id BigInt @default(0)
230
+ remark String? @db.VarChar(256)
2710
231
  }
2711
232
 
2712
233
  model agents {
@@ -2715,8 +236,8 @@ model agents {
2715
236
  createuserid BigInt @default(0)
2716
237
  updatedatetime DateTime? @db.Timestamptz(6)
2717
238
  updateuserid BigInt @default(0)
2718
- isdelete Boolean? @default(false)
2719
- istrash Boolean? @default(false)
239
+ isdelete Boolean @default(false)
240
+ istrash Boolean @default(false)
2720
241
  accountid BigInt @default(0)
2721
242
  user_id BigInt @default(0)
2722
243
  company_name String? @db.VarChar(100)
@@ -2727,22 +248,69 @@ model agents {
2727
248
  address_1 String? @db.VarChar(255)
2728
249
  address_2 String? @db.VarChar(255)
2729
250
  postcode String? @db.VarChar(255)
2730
- state_id BigInt? @default(0)
2731
- area_id BigInt? @default(0)
2732
- country_id BigInt? @default(0)
251
+ state_id BigInt @default(0)
252
+ area_id BigInt @default(0)
253
+ country_id BigInt @default(0)
254
+ remark String? @db.VarChar(256)
255
+ }
256
+
257
+ model retailers {
258
+ retailer_id BigInt @id @default(autoincrement())
259
+ createdatetime DateTime? @db.Timestamptz(6)
260
+ createuserid BigInt @default(0)
261
+ updatedatetime DateTime? @db.Timestamptz(6)
262
+ updateuserid BigInt @default(0)
263
+ isdelete Boolean @default(false)
264
+ istrash Boolean @default(false)
265
+ accountid BigInt @default(0)
266
+ user_id BigInt @default(0)
267
+ company_name String? @db.VarChar(100)
268
+ code String? @db.VarChar(64)
269
+ account_code String? @db.VarChar(64)
270
+ reg_no String? @db.VarChar(20)
271
+ gst_no String? @db.VarChar(32)
272
+ remark String? @db.VarChar(256)
273
+ }
274
+
275
+ model workers {
276
+ worker_id BigInt @id @default(autoincrement())
277
+ createdatetime DateTime? @db.Timestamptz(6)
278
+ createuserid BigInt @default(0)
279
+ updatedatetime DateTime? @db.Timestamptz(6)
280
+ updateuserid BigInt @default(0)
281
+ isdelete Boolean @default(false)
282
+ istrash Boolean @default(false)
283
+ accountid BigInt @default(0)
284
+ user_id BigInt @default(0)
2733
285
  remark String? @db.VarChar(256)
286
+ }
2734
287
 
2735
- @@schema("public")
288
+ model drivers {
289
+ driver_id BigInt @id @default(autoincrement())
290
+ createdatetime DateTime? @db.Timestamptz(6)
291
+ createuserid BigInt @default(0)
292
+ updatedatetime DateTime? @db.Timestamptz(6)
293
+ updateuserid BigInt @default(0)
294
+ isdelete Boolean @default(false)
295
+ istrash Boolean @default(false)
296
+ accountid BigInt @default(0)
297
+ user_id BigInt @default(0)
298
+ company_name String? @db.VarChar(100)
299
+ remark String? @db.VarChar(256)
2736
300
  }
2737
301
 
302
+ // ============================================================
303
+ // SUBSCRIPTION & BILLING
304
+ // ============================================================
305
+
2738
306
  model subscribe_plans {
2739
- subscribe_plan_id BigInt @id(map: "subscribe_plan_pkey") @default(autoincrement())
307
+ subscribe_plan_id BigInt @id @default(autoincrement())
2740
308
  createdatetime DateTime? @db.Timestamptz(6)
2741
309
  createuserid BigInt @default(0)
2742
310
  updatedatetime DateTime? @db.Timestamptz(6)
2743
311
  updateuserid BigInt @default(0)
2744
- isdelete Boolean? @default(false)
2745
- istrash Boolean? @default(false)
312
+ isdelete Boolean @default(false)
313
+ istrash Boolean @default(false)
2746
314
  accountid BigInt @default(0)
2747
315
  name String @db.VarChar(100)
2748
316
  short_description String? @db.VarChar(255)
@@ -2750,10 +318,8 @@ model subscribe_plans {
2750
318
  price Decimal @db.Decimal(10, 2)
2751
319
  currency String @default("MYR") @db.Char(3)
2752
320
  billing_cycle String @db.VarChar(20)
2753
- status Boolean? @default(false)
2754
321
  is_single_subscription Boolean @default(true)
2755
-
2756
- @@schema("public")
322
+ status Boolean @default(false)
2757
323
  }
2758
324
 
2759
325
  model account_subscriptions {
@@ -2762,138 +328,374 @@ model account_subscriptions {
2762
328
  createuserid BigInt @default(0)
2763
329
  updatedatetime DateTime? @db.Timestamptz(6)
2764
330
  updateuserid BigInt @default(0)
2765
- isdelete Boolean? @default(false)
2766
- istrash Boolean? @default(false)
331
+ isdelete Boolean @default(false)
332
+ istrash Boolean @default(false)
2767
333
  accountid BigInt @default(0)
2768
334
  account_id BigInt @default(0)
2769
335
  subscribe_plan_id BigInt @default(0)
2770
- status Boolean? @default(false)
336
+ status Boolean @default(false)
2771
337
  subscription_start_date DateTime? @db.Timestamptz(6)
2772
338
  subscription_end_date DateTime? @db.Timestamptz(6)
2773
339
  is_cancel Boolean? @default(false)
2774
340
  cancel_datetime DateTime? @db.Timestamptz(6)
341
+ }
342
+
343
+ // ============================================================
344
+ // ORGANISATION
345
+ // ============================================================
346
+
347
+ model businesses {
348
+ business_id BigInt @id @default(autoincrement())
349
+ createdatetime DateTime? @db.Timestamptz(6)
350
+ createuserid BigInt @default(0)
351
+ updatedatetime DateTime? @db.Timestamptz(6)
352
+ updateuserid BigInt @default(0)
353
+ isdelete Boolean @default(false)
354
+ istrash Boolean @default(false)
355
+ accountid BigInt @default(0)
356
+ company_name String? @db.VarChar(256)
357
+ registration_number String? @db.VarChar(256)
358
+ website String? @db.VarChar(256)
359
+ email String? @db.VarChar(256)
360
+ company_contact String? @db.VarChar(256)
361
+ address_1 String? @db.VarChar(256)
362
+ address_2 String? @db.VarChar(256)
363
+ state_id BigInt @default(0)
364
+ area_id BigInt @default(0)
365
+ country_id BigInt @default(0)
366
+ postcode String? @db.VarChar(64)
367
+ status Boolean @default(true)
368
+ }
369
+
370
+ // ============================================================
371
+ // REFERENCE DATA
372
+ // ============================================================
2775
373
 
2776
- @@schema("public")
374
+ model countries {
375
+ country_id BigInt @id @default(autoincrement())
376
+ createdatetime DateTime? @db.Timestamptz(6)
377
+ createuserid BigInt @default(0)
378
+ updatedatetime DateTime? @db.Timestamptz(6)
379
+ updateuserid BigInt @default(0)
380
+ isdelete Boolean @default(false)
381
+ istrash Boolean @default(false)
382
+ accountid BigInt @default(0)
383
+ sort_name String @db.VarChar(3)
384
+ country_name String @db.VarChar(150)
385
+ phone_code Int @default(0)
386
+ status Boolean @default(false)
2777
387
  }
2778
388
 
2779
- model scheduler_logs {
2780
- scheduler_log_id BigInt @id @default(autoincrement())
2781
- createdatetime DateTime? @db.Timestamptz(6)
2782
- createuserid BigInt @default(0)
2783
- updatedatetime DateTime? @db.Timestamptz(6)
2784
- updateuserid BigInt @default(0)
2785
- isdelete Boolean? @default(false)
2786
- istrash Boolean? @default(false)
2787
- accountid BigInt @default(0)
2788
- scheduler_task_id BigInt @default(autoincrement())
2789
- flow_type String @db.VarChar(256)
2790
- field_ref String @db.VarChar(256)
2791
- field_module String @db.VarChar(256)
2792
- log_action String @db.VarChar(256)
2793
- log_label String @db.VarChar(256)
2794
- log_status Boolean? @default(false)
2795
- log_message String?
2796
- source_type String? @db.VarChar(256)
2797
- source_entity_id String? @db.VarChar(256)
2798
- source_entity_label String? @db.VarChar(256)
2799
- source_entity_data String?
2800
- destination_type String? @db.VarChar(256)
2801
- destination_entity_id String? @db.VarChar(256)
2802
- destination_entity_label String? @db.VarChar(256)
2803
- destination_submit_payload String?
2804
- destination_submit_response String?
389
+ model states {
390
+ state_id BigInt @id @default(autoincrement())
391
+ createdatetime DateTime? @db.Timestamptz(6)
392
+ createuserid BigInt @default(0)
393
+ updatedatetime DateTime? @db.Timestamptz(6)
394
+ updateuserid BigInt @default(0)
395
+ isdelete Boolean @default(false)
396
+ istrash Boolean @default(false)
397
+ accountid BigInt @default(0)
398
+ state_name String @db.VarChar(30)
399
+ country_id BigInt @default(1)
400
+ status Boolean @default(false)
401
+ }
2805
402
 
2806
- @@schema("public")
403
+ model areas {
404
+ area_id BigInt @id @default(autoincrement())
405
+ createdatetime DateTime? @db.Timestamptz(6)
406
+ createuserid BigInt @default(0)
407
+ updatedatetime DateTime? @db.Timestamptz(6)
408
+ updateuserid BigInt @default(0)
409
+ isdelete Boolean @default(false)
410
+ istrash Boolean @default(false)
411
+ accountid BigInt @default(0)
412
+ area_name String @db.VarChar(30)
413
+ state_id BigInt @default(1)
414
+ postcode_string String?
415
+ status Boolean @default(false)
2807
416
  }
2808
417
 
2809
- model access_control_role_policies {
2810
- access_control_role_policy_id BigInt @id(map: "role_policies_pkey") @default(autoincrement())
2811
- createdatetime DateTime? @db.Timestamptz(6)
2812
- createuserid BigInt @default(0)
2813
- updatedatetime DateTime? @db.Timestamptz(6)
2814
- updateuserid BigInt @default(0)
2815
- isdelete Boolean? @default(false)
2816
- istrash Boolean? @default(false)
2817
- accountid BigInt @default(0)
2818
- permission_key String @db.VarChar(128)
2819
- access_control_role_id BigInt @default(0)
418
+ // ============================================================
419
+ // PRODUCTS
420
+ // ============================================================
421
+
422
+ model products {
423
+ product_id BigInt @id @default(autoincrement())
424
+ createdatetime DateTime? @db.Timestamptz(6)
425
+ createuserid BigInt @default(0)
426
+ updatedatetime DateTime? @db.Timestamptz(6)
427
+ updateuserid BigInt @default(0)
428
+ isdelete Boolean @default(false)
429
+ istrash Boolean @default(false)
430
+ accountid BigInt @default(0)
431
+ product_code String @default("") @db.VarChar(255)
432
+ product_name String @db.VarChar(255)
433
+ category_id BigInt @default(0)
434
+ brand_id BigInt @default(0)
435
+ model String? @db.VarChar(128)
436
+ description String? @db.VarChar(256)
437
+ summary String? @db.VarChar(256)
438
+ status Boolean @default(false)
439
+ }
2820
440
 
2821
- @@schema("public")
441
+ model brands {
442
+ brand_id BigInt @id @default(autoincrement())
443
+ createdatetime DateTime? @db.Timestamptz(6)
444
+ createuserid BigInt @default(0)
445
+ updatedatetime DateTime? @db.Timestamptz(6)
446
+ updateuserid BigInt @default(0)
447
+ isdelete Boolean @default(false)
448
+ istrash Boolean @default(false)
449
+ accountid BigInt @default(0)
450
+ brand_name String? @db.VarChar(128)
451
+ brand_code String @default("") @db.VarChar(128)
452
+ description String? @db.VarChar(256)
453
+ status Boolean @default(false)
2822
454
  }
2823
455
 
2824
- model access_control_roles {
2825
- access_control_role_id BigInt @id(map: "roles_pkey") @default(autoincrement())
456
+ model categories {
457
+ category_id BigInt @id @default(autoincrement())
458
+ createdatetime DateTime? @db.Timestamptz(6)
459
+ createuserid BigInt @default(0)
460
+ updatedatetime DateTime? @db.Timestamptz(6)
461
+ updateuserid BigInt @default(0)
462
+ isdelete Boolean @default(false)
463
+ istrash Boolean @default(false)
464
+ accountid BigInt @default(0)
465
+ category_code String @default("") @db.VarChar(128)
466
+ parent_category_id BigInt @default(0)
467
+ category_name String? @db.VarChar(128)
468
+ description String? @db.VarChar(256)
469
+ status Boolean @default(false)
470
+ }
471
+
472
+ model uoms {
473
+ uom_id BigInt @id @default(autoincrement())
474
+ createdatetime DateTime? @db.Timestamptz(6)
475
+ createuserid BigInt @default(0)
476
+ updatedatetime DateTime? @db.Timestamptz(6)
477
+ updateuserid BigInt @default(0)
478
+ isdelete Boolean @default(false)
479
+ istrash Boolean @default(false)
480
+ accountid BigInt @default(0)
481
+ uom_name String? @db.VarChar(128)
482
+ uom_code String @default("") @db.VarChar(128)
483
+ description String? @db.VarChar(256)
484
+ metric_type String? @db.VarChar(256)
485
+ metric_type_display_name String? @db.VarChar(128)
486
+ decimal_digit Int @default(2) @db.SmallInt
487
+ status Boolean @default(false)
488
+ }
489
+
490
+ model items {
491
+ item_id BigInt @id @default(autoincrement())
492
+ createdatetime DateTime? @db.Timestamptz(6)
493
+ createuserid BigInt @default(0)
494
+ updatedatetime DateTime? @db.Timestamptz(6)
495
+ updateuserid BigInt @default(0)
496
+ isdelete Boolean @default(false)
497
+ istrash Boolean @default(false)
498
+ accountid BigInt @default(0)
499
+ product_id BigInt @default(0)
500
+ uom_id BigInt @default(0)
501
+ uom_name String? @db.VarChar(128)
502
+ uom_code String @default("") @db.VarChar(128)
503
+ item_code String? @db.VarChar(255)
504
+ item_description String? @db.VarChar(256)
505
+ item_cost Decimal @default(0) @db.Decimal(10, 4)
506
+ item_price Decimal @default(0) @db.Decimal(15, 4)
507
+ floor_price Decimal @default(0) @db.Decimal(10, 4)
508
+ remark String? @db.VarChar(256)
509
+ summary String? @db.VarChar(256)
510
+ gross_weight Decimal @default(0) @db.Decimal(10, 4)
511
+ net_weight Decimal @default(0) @db.Decimal(10, 4)
512
+ volume_weight Decimal @default(0) @db.Decimal(10, 4)
513
+ dimension_width Decimal @default(0) @db.Decimal(10, 4)
514
+ dimension_height Decimal @default(0) @db.Decimal(10, 4)
515
+ dimension_length Decimal @default(0) @db.Decimal(10, 4)
516
+ cbm Decimal @default(0) @db.Decimal(10, 4)
517
+ balance_quantity Decimal @default(0) @db.Decimal(10, 4)
518
+ status Boolean @default(false)
519
+ is_package Boolean @default(false)
520
+ }
521
+
522
+ // ============================================================
523
+ // LOCATION & WAREHOUSE
524
+ // ============================================================
525
+
526
+ model locations {
527
+ location_id BigInt @id @default(autoincrement())
528
+ createdatetime DateTime? @db.Timestamptz(6)
529
+ createuserid BigInt @default(0)
530
+ updatedatetime DateTime? @db.Timestamptz(6)
531
+ updateuserid BigInt @default(0)
532
+ isdelete Boolean @default(false)
533
+ istrash Boolean @default(false)
534
+ accountid BigInt @default(0)
535
+ location_name String @db.VarChar(255)
536
+ location_type String @db.VarChar(255)
537
+ location_code String? @db.VarChar(255)
538
+ address_1 String? @db.VarChar(255)
539
+ address_2 String? @db.VarChar(255)
540
+ postcode String? @db.VarChar(255)
541
+ state_id BigInt @default(0)
542
+ area_id BigInt @default(0)
543
+ country_id BigInt @default(0)
544
+ person_name String? @db.VarChar(255)
545
+ person_contact String? @db.VarChar(255)
546
+ person_email String? @db.VarChar(256)
547
+ is_default Boolean @default(false)
548
+ status Boolean @default(false)
549
+ }
550
+
551
+ model location_racks {
552
+ location_rack_id BigInt @id @default(autoincrement())
553
+ createdatetime DateTime? @db.Timestamptz(6)
554
+ createuserid BigInt @default(0)
555
+ updatedatetime DateTime? @db.Timestamptz(6)
556
+ updateuserid BigInt @default(0)
557
+ isdelete Boolean @default(false)
558
+ istrash Boolean @default(false)
559
+ accountid BigInt @default(0)
560
+ location_id BigInt @default(0)
561
+ rack_name String @db.VarChar(255)
562
+ rack_sequence BigInt?
563
+ rack_type String @db.VarChar(255)
564
+ is_default Boolean @default(false)
565
+ status Boolean @default(false)
566
+ }
567
+
568
+ model location_slots {
569
+ location_slot_id BigInt @id @default(autoincrement())
570
+ createdatetime DateTime? @db.Timestamptz(6)
571
+ createuserid BigInt @default(0)
572
+ updatedatetime DateTime? @db.Timestamptz(6)
573
+ updateuserid BigInt @default(0)
574
+ isdelete Boolean @default(false)
575
+ istrash Boolean @default(false)
576
+ accountid BigInt @default(0)
577
+ rack_id BigInt @default(0)
578
+ slot_name String @db.VarChar(255)
579
+ slot_sequence Int @default(0)
580
+ is_default Boolean @default(false)
581
+ status Boolean @default(false)
582
+ }
583
+
584
+ model location_zones {
585
+ location_zone_id BigInt @id @default(autoincrement())
586
+ createdatetime DateTime? @db.Timestamptz(6)
587
+ createuserid BigInt @default(0)
588
+ updatedatetime DateTime? @db.Timestamptz(6)
589
+ updateuserid BigInt @default(0)
590
+ isdelete Boolean @default(false)
591
+ istrash Boolean @default(false)
592
+ accountid BigInt @default(0)
593
+ location_id BigInt @default(0)
594
+ zone_name String @db.VarChar(255)
595
+ zone_code String? @db.VarChar(255)
596
+ zone_sequence BigInt?
597
+ is_default Boolean @default(false)
598
+ status Boolean @default(false)
599
+ }
600
+
601
+ // ============================================================
602
+ // DOCUMENTS
603
+ // ============================================================
604
+
605
+ model documents {
606
+ document_id BigInt @id @default(autoincrement())
2826
607
  createdatetime DateTime? @db.Timestamptz(6)
2827
608
  createuserid BigInt @default(0)
2828
609
  updatedatetime DateTime? @db.Timestamptz(6)
2829
610
  updateuserid BigInt @default(0)
2830
- isdelete Boolean? @default(false)
2831
- istrash Boolean? @default(false)
611
+ isdelete Boolean @default(false)
612
+ istrash Boolean @default(false)
2832
613
  accountid BigInt @default(0)
2833
- name String @db.VarChar(128)
2834
- user_type String @db.VarChar(128)
2835
- description String?
2836
- status Boolean? @default(true)
2837
-
2838
- @@schema("public")
614
+ doc_number String? @db.VarChar(32)
615
+ doc_date DateTime? @db.Date
616
+ doc_type String? @db.VarChar(32)
617
+ doc_remark String?
618
+ doc_reference1_id BigInt? @default(0)
619
+ doc_reference1_label String? @db.VarChar(256)
620
+ doc_reference2_id BigInt? @default(0)
621
+ doc_reference2_label String? @db.VarChar(256)
622
+ location_id BigInt @default(0)
623
+ subtotal_amount Decimal @default(0) @db.Decimal(10, 4)
624
+ discount_amount Decimal @default(0) @db.Decimal(10, 4)
625
+ tax_amount Decimal @default(0) @db.Decimal(10, 4)
626
+ rounding_amount Decimal @default(0) @db.Decimal(10, 4)
627
+ service_charge_amount Decimal @default(0) @db.Decimal(10, 4)
628
+ delivery_charge_amount Decimal @default(0) @db.Decimal(10, 4)
629
+ total_amount Decimal @default(0) @db.Decimal(10, 4)
630
+ grand_total_amount Decimal @default(0) @db.Decimal(10, 4)
631
+ paid_amount Decimal @default(0) @db.Decimal(10, 4)
632
+ balance_amount Decimal @default(0) @db.Decimal(10, 4)
2839
633
  }
2840
634
 
2841
- model access_control_user_roles {
2842
- access_control_user_role_id BigInt @id @default(autoincrement())
2843
- createdatetime DateTime? @db.Timestamptz(6)
2844
- createuserid BigInt @default(0)
2845
- updatedatetime DateTime? @db.Timestamptz(6)
2846
- updateuserid BigInt @default(0)
2847
- isdelete Boolean? @default(false)
2848
- istrash Boolean? @default(false)
2849
- accountid BigInt @default(0)
2850
- access_control_role_id BigInt @default(0)
2851
- user_id BigInt @default(0)
635
+ model document_profiles {
636
+ document_profile_id BigInt @id @default(autoincrement())
637
+ createdatetime DateTime? @db.Timestamptz(6)
638
+ createuserid BigInt @default(0)
639
+ updatedatetime DateTime? @db.Timestamptz(6)
640
+ updateuserid BigInt @default(0)
641
+ isdelete Boolean @default(false)
642
+ istrash Boolean @default(false)
643
+ accountid BigInt @default(0)
644
+ user_id BigInt @default(0)
645
+ user_branch_id BigInt @default(0)
646
+ document_id BigInt @default(0)
647
+ type String @db.VarChar(128)
648
+ document_type String @db.VarChar(128)
649
+ code String? @db.VarChar(255)
650
+ profile_name String? @db.VarChar(255)
651
+ contact String? @db.VarChar(255)
652
+ email String? @db.VarChar(255)
653
+ name String? @db.VarChar(255)
654
+ address_1 String? @db.VarChar(255)
655
+ address_2 String? @db.VarChar(255)
656
+ state_id BigInt? @default(0)
657
+ postcode String? @db.VarChar(11)
658
+ area_id BigInt? @default(0)
659
+ country_id BigInt? @default(0)
660
+ }
2852
661
 
2853
- @@schema("public")
662
+ model document_totals {
663
+ document_total_id BigInt @id @default(autoincrement())
664
+ createdatetime DateTime? @db.Timestamptz(6)
665
+ createuserid BigInt @default(0)
666
+ updatedatetime DateTime? @db.Timestamptz(6)
667
+ updateuserid BigInt @default(0)
668
+ isdelete Boolean @default(false)
669
+ istrash Boolean @default(false)
670
+ accountid BigInt @default(0)
671
+ type String? @db.VarChar(128)
672
+ total_type String? @db.VarChar(128)
673
+ operation String? @db.VarChar(128)
674
+ document_id BigInt @default(0)
675
+ refer_id BigInt? @default(0)
676
+ description String?
677
+ total_amount Decimal? @default(0) @db.Decimal(10, 2)
678
+ total_percentage Decimal? @default(0) @db.Decimal(10, 2)
2854
679
  }
2855
680
 
681
+ // ============================================================
682
+ // REPOSITORY
683
+ // ============================================================
684
+
2856
685
  model repositories {
2857
686
  repository_id BigInt @id @default(autoincrement())
2858
687
  createdatetime DateTime? @db.Timestamptz(6)
2859
688
  createuserid BigInt @default(0)
2860
689
  updatedatetime DateTime? @db.Timestamptz(6)
2861
690
  updateuserid BigInt @default(0)
2862
- isdelete Boolean? @default(false)
2863
- istrash Boolean? @default(false)
691
+ isdelete Boolean @default(false)
692
+ istrash Boolean @default(false)
2864
693
  accountid BigInt @default(0)
2865
694
  repository_number String? @db.VarChar(32)
2866
695
  repository_date DateTime? @db.Date
2867
696
  repository_type String? @db.VarChar(32)
2868
697
  remark String? @db.VarChar(256)
2869
698
  description String? @db.VarChar(256)
2870
-
2871
- @@schema("public")
2872
- }
2873
-
2874
- model repository_cartons {
2875
- repository_carton_id BigInt @id @default(autoincrement())
2876
- createdatetime DateTime? @db.Timestamptz(6)
2877
- createuserid BigInt @default(0)
2878
- updatedatetime DateTime? @db.Timestamptz(6)
2879
- updateuserid BigInt @default(0)
2880
- isdelete Boolean? @default(false)
2881
- istrash Boolean? @default(false)
2882
- accountid BigInt @default(0)
2883
- carton_number String? @db.VarChar(32)
2884
- carton_description String? @db.VarChar(256)
2885
- quantity Int? @default(1)
2886
- dimension_weight Decimal? @default(0.00) @db.Decimal(10, 2)
2887
- dimension_length Decimal? @default(0.00) @db.Decimal(10, 2)
2888
- dimension_width Decimal? @default(0.00) @db.Decimal(10, 2)
2889
- dimension_height Decimal? @default(0.00) @db.Decimal(10, 2)
2890
- is_fragile Boolean? @default(false)
2891
- batch_number String? @db.VarChar(64)
2892
- repository_id BigInt @default(0)
2893
- repository_container_id BigInt @default(0)
2894
- repository_pallet_id BigInt @default(0)
2895
-
2896
- @@schema("public")
2897
699
  }
2898
700
 
2899
701
  model repository_containers {
@@ -2902,8 +704,8 @@ model repository_containers {
2902
704
  createuserid BigInt @default(0)
2903
705
  updatedatetime DateTime? @db.Timestamptz(6)
2904
706
  updateuserid BigInt @default(0)
2905
- isdelete Boolean? @default(false)
2906
- istrash Boolean? @default(false)
707
+ isdelete Boolean @default(false)
708
+ istrash Boolean @default(false)
2907
709
  accountid BigInt @default(0)
2908
710
  container_number String? @db.VarChar(32)
2909
711
  container_description String? @db.VarChar(256)
@@ -2913,139 +715,174 @@ model repository_containers {
2913
715
  load_date DateTime? @db.Date
2914
716
  arrival_date DateTime? @db.Date
2915
717
  repository_id BigInt @default(0)
2916
-
2917
- @@schema("public")
2918
718
  }
2919
719
 
2920
- model repository_package_items {
2921
- repository_package_item_id BigInt @id @default(autoincrement())
2922
- createdatetime DateTime? @db.Timestamptz(6)
2923
- createuserid BigInt @default(0)
2924
- updatedatetime DateTime? @db.Timestamptz(6)
2925
- updateuserid BigInt @default(0)
2926
- isdelete Boolean? @default(false)
2927
- istrash Boolean? @default(false)
2928
- accountid BigInt @default(0)
2929
- item_number String? @db.VarChar(32)
2930
- item_name String? @db.VarChar(32)
2931
- item_description String? @db.VarChar(256)
2932
- quantity Int? @default(1)
2933
- dimension_weight Decimal? @default(0.00) @db.Decimal(10, 2)
2934
- dimension_length Decimal? @default(0.00) @db.Decimal(10, 2)
2935
- dimension_width Decimal? @default(0.00) @db.Decimal(10, 2)
2936
- dimension_height Decimal? @default(0.00) @db.Decimal(10, 2)
2937
- is_fragile Boolean? @default(false)
2938
- batch_number String? @db.VarChar(64)
2939
- repository_id BigInt @default(0)
2940
- repository_package_id BigInt @default(0)
2941
- item_id BigInt @default(0)
2942
- document_id BigInt @default(0)
2943
-
2944
- @@schema("public")
720
+ model repository_pallets {
721
+ repository_pallet_id BigInt @id @default(autoincrement())
722
+ createdatetime DateTime? @db.Timestamptz(6)
723
+ createuserid BigInt @default(0)
724
+ updatedatetime DateTime? @db.Timestamptz(6)
725
+ updateuserid BigInt @default(0)
726
+ isdelete Boolean @default(false)
727
+ istrash Boolean @default(false)
728
+ accountid BigInt @default(0)
729
+ pallet_number String? @db.VarChar(32)
730
+ pallet_description String? @db.VarChar(256)
731
+ quantity Int @default(1)
732
+ dimension_weight Decimal @default(0) @db.Decimal(10, 2)
733
+ dimension_length Decimal @default(0) @db.Decimal(10, 2)
734
+ dimension_width Decimal @default(0) @db.Decimal(10, 2)
735
+ dimension_height Decimal @default(0) @db.Decimal(10, 2)
736
+ is_fragile Boolean @default(false)
737
+ batch_number String? @db.VarChar(64)
738
+ repository_id BigInt @default(0)
739
+ repository_container_id BigInt @default(0)
2945
740
  }
2946
741
 
2947
- model repository_packages {
2948
- repository_package_id BigInt @id @default(autoincrement())
742
+ model repository_cartons {
743
+ repository_carton_id BigInt @id @default(autoincrement())
2949
744
  createdatetime DateTime? @db.Timestamptz(6)
2950
745
  createuserid BigInt @default(0)
2951
746
  updatedatetime DateTime? @db.Timestamptz(6)
2952
747
  updateuserid BigInt @default(0)
2953
- isdelete Boolean? @default(false)
2954
- istrash Boolean? @default(false)
748
+ isdelete Boolean @default(false)
749
+ istrash Boolean @default(false)
2955
750
  accountid BigInt @default(0)
2956
- package_number String? @db.VarChar(32)
2957
- package_description String? @db.VarChar(256)
2958
- quantity Int? @default(1)
2959
- dimension_weight Decimal? @default(0.00) @db.Decimal(10, 2)
2960
- dimension_length Decimal? @default(0.00) @db.Decimal(10, 2)
2961
- dimension_width Decimal? @default(0.00) @db.Decimal(10, 2)
2962
- dimension_height Decimal? @default(0.00) @db.Decimal(10, 2)
2963
- is_fragile Boolean? @default(false)
751
+ carton_number String? @db.VarChar(32)
752
+ carton_description String? @db.VarChar(256)
753
+ quantity Int @default(1)
754
+ dimension_weight Decimal @default(0) @db.Decimal(10, 2)
755
+ dimension_length Decimal @default(0) @db.Decimal(10, 2)
756
+ dimension_width Decimal @default(0) @db.Decimal(10, 2)
757
+ dimension_height Decimal @default(0) @db.Decimal(10, 2)
758
+ is_fragile Boolean @default(false)
2964
759
  batch_number String? @db.VarChar(64)
2965
760
  repository_id BigInt @default(0)
2966
761
  repository_container_id BigInt @default(0)
2967
762
  repository_pallet_id BigInt @default(0)
2968
- repository_carton_id BigInt @default(0)
2969
-
2970
- @@schema("public")
2971
763
  }
2972
764
 
2973
- model repository_pallets {
2974
- repository_pallet_id BigInt @id @default(autoincrement())
765
+ model repository_packages {
766
+ repository_package_id BigInt @id @default(autoincrement())
2975
767
  createdatetime DateTime? @db.Timestamptz(6)
2976
768
  createuserid BigInt @default(0)
2977
769
  updatedatetime DateTime? @db.Timestamptz(6)
2978
770
  updateuserid BigInt @default(0)
2979
- isdelete Boolean? @default(false)
2980
- istrash Boolean? @default(false)
771
+ isdelete Boolean @default(false)
772
+ istrash Boolean @default(false)
2981
773
  accountid BigInt @default(0)
2982
- pallet_number String? @db.VarChar(32)
2983
- pallet_description String? @db.VarChar(256)
2984
- quantity Int? @default(1)
2985
- dimension_weight Decimal? @default(0.00) @db.Decimal(10, 2)
2986
- dimension_length Decimal? @default(0.00) @db.Decimal(10, 2)
2987
- dimension_width Decimal? @default(0.00) @db.Decimal(10, 2)
2988
- dimension_height Decimal? @default(0.00) @db.Decimal(10, 2)
2989
- is_fragile Boolean? @default(false)
774
+ package_number String? @db.VarChar(32)
775
+ package_description String? @db.VarChar(256)
776
+ quantity Int @default(1)
777
+ dimension_weight Decimal @default(0) @db.Decimal(10, 2)
778
+ dimension_length Decimal @default(0) @db.Decimal(10, 2)
779
+ dimension_width Decimal @default(0) @db.Decimal(10, 2)
780
+ dimension_height Decimal @default(0) @db.Decimal(10, 2)
781
+ is_fragile Boolean @default(false)
2990
782
  batch_number String? @db.VarChar(64)
2991
783
  repository_id BigInt @default(0)
2992
784
  repository_container_id BigInt @default(0)
785
+ repository_pallet_id BigInt @default(0)
786
+ repository_carton_id BigInt @default(0)
787
+ }
2993
788
 
2994
- @@schema("public")
789
+ model repository_package_items {
790
+ repository_package_item_id BigInt @id @default(autoincrement())
791
+ createdatetime DateTime? @db.Timestamptz(6)
792
+ createuserid BigInt @default(0)
793
+ updatedatetime DateTime? @db.Timestamptz(6)
794
+ updateuserid BigInt @default(0)
795
+ isdelete Boolean @default(false)
796
+ istrash Boolean @default(false)
797
+ accountid BigInt @default(0)
798
+ item_number String? @db.VarChar(32)
799
+ item_name String? @db.VarChar(32)
800
+ item_description String? @db.VarChar(256)
801
+ quantity Int @default(1)
802
+ dimension_weight Decimal @default(0) @db.Decimal(10, 2)
803
+ dimension_length Decimal @default(0) @db.Decimal(10, 2)
804
+ dimension_width Decimal @default(0) @db.Decimal(10, 2)
805
+ dimension_height Decimal @default(0) @db.Decimal(10, 2)
806
+ is_fragile Boolean @default(false)
807
+ batch_number String? @db.VarChar(64)
808
+ repository_id BigInt @default(0)
809
+ repository_package_id BigInt @default(0)
810
+ item_id BigInt @default(0)
811
+ document_id BigInt @default(0)
2995
812
  }
2996
813
 
2997
- model cl_scheduler_logs_bk {
2998
- scheduler_log_id BigInt @id(map: "cl_scheduler_logs_pkey") @default(autoincrement())
2999
- scheduler_task_id BigInt @default(autoincrement())
3000
- flow_type String @db.VarChar(256)
3001
- target String @db.VarChar(256)
3002
- module String @db.VarChar(256)
3003
- log_ref String @db.VarChar(256)
3004
- action String @db.VarChar(256)
3005
- log_status Int @default(0) @db.SmallInt
3006
- log_message String?
3007
- source_id String? @db.VarChar(256)
3008
- source_type String? @db.VarChar(256)
3009
- destination_id String? @db.VarChar(256)
3010
- destination_type String? @db.VarChar(256)
3011
- source_data String?
3012
- destination_result String?
3013
- ax_createdatetime DateTime? @db.Timestamp(6)
3014
- ax_createuserid BigInt @default(0)
3015
- ax_updatedatetime DateTime? @db.Timestamp(6)
3016
- ax_updateuserid BigInt @default(0)
3017
- ax_isdelete Boolean? @default(false)
3018
- ax_istrash Boolean? @default(false)
3019
- ax_accountid BigInt @default(0)
3020
- destination_submit_data String?
814
+ // ============================================================
815
+ // FILES & MEDIA
816
+ // ============================================================
3021
817
 
3022
- @@index([scheduler_task_id], map: "idx_scheduler_logs_scheduler_task_id")
3023
- @@schema("public")
818
+ model files {
819
+ file_id BigInt @id @default(autoincrement())
820
+ createdatetime DateTime? @db.Timestamptz(6)
821
+ createuserid BigInt @default(0)
822
+ updatedatetime DateTime? @db.Timestamptz(6)
823
+ updateuserid BigInt @default(0)
824
+ isdelete Boolean @default(false)
825
+ istrash Boolean @default(false)
826
+ accountid BigInt @default(0)
827
+ field_ref String @db.VarChar(255)
828
+ field_module String @db.VarChar(255)
829
+ content_type String? @db.VarChar(128)
830
+ file_category_name String? @db.VarChar(128)
831
+ tag_name String @db.VarChar(255)
832
+ description String? @db.VarChar(256)
833
+ remark String? @db.VarChar(256)
834
+ asset_path String? @db.VarChar(256)
835
+ asset_url String? @db.VarChar(256)
836
+ thumbnail_url String? @db.VarChar(256)
837
+ file_label String @db.VarChar(256)
838
+ file_name String @db.VarChar(256)
839
+ storage_provider_name String @db.VarChar(256)
840
+ foldername_year Int @default(0)
841
+ foldername_month Int @default(0)
842
+ foldername_day Int @default(0)
843
+ file_size_bytes BigInt @default(0)
844
+ file_duration_seconds Decimal @default(0) @db.Decimal(10, 3)
845
+ file_compress_format String? @db.VarChar(128)
846
+ input_type String? @db.VarChar(128)
847
+ input_file_size_bytes BigInt @default(0)
848
+ input_file_name String? @db.VarChar(128)
849
+ batch_code String? @db.VarChar(128)
850
+ refer_id_1 BigInt @default(0)
851
+ refer_label_1 String? @db.VarChar(128)
852
+ refer_id_2 BigInt @default(0)
853
+ refer_label_2 String? @db.VarChar(128)
3024
854
  }
3025
855
 
3026
- model cl_scheduler_requests_bk {
3027
- scheduler_request_id BigInt @id(map: "cl_scheduler_requests_pkey") @default(autoincrement())
3028
- source_id BigInt? @default(0)
3029
- request_ref String @db.VarChar(256)
3030
- module String @db.VarChar(256)
3031
- target String @db.VarChar(256)
3032
- integration_id String @db.VarChar(256)
3033
- destination_id String? @db.VarChar(256)
3034
- source_data String?
3035
- action String @db.VarChar(256)
3036
- attempt_no BigInt? @default(0)
3037
- attempt_status Int @default(0) @db.SmallInt
3038
- attempt_result String?
3039
- ax_createdatetime DateTime? @db.Timestamp(6)
3040
- ax_createuserid BigInt @default(0)
3041
- ax_updatedatetime DateTime? @db.Timestamp(6)
3042
- ax_updateuserid BigInt @default(0)
3043
- ax_isdelete Boolean? @default(false)
3044
- ax_istrash Boolean? @default(false)
3045
- ax_accountid BigInt @default(0)
3046
- attempt_datetime DateTime? @db.Timestamp(6)
856
+ // ============================================================
857
+ // SCHEDULER
858
+ // ============================================================
3047
859
 
3048
- @@schema("public")
860
+ model scheduler_logs {
861
+ scheduler_log_id BigInt @id @default(autoincrement())
862
+ createdatetime DateTime? @db.Timestamptz(6)
863
+ createuserid BigInt @default(0)
864
+ updatedatetime DateTime? @db.Timestamptz(6)
865
+ updateuserid BigInt @default(0)
866
+ isdelete Boolean @default(false)
867
+ istrash Boolean @default(false)
868
+ accountid BigInt @default(0)
869
+ scheduler_task_id BigInt
870
+ flow_type String @db.VarChar(256)
871
+ field_ref String @db.VarChar(256)
872
+ field_module String @db.VarChar(256)
873
+ log_action String @db.VarChar(256)
874
+ log_label String @db.VarChar(256)
875
+ log_status Boolean @default(false)
876
+ log_message String?
877
+ source_type String? @db.VarChar(256)
878
+ source_entity_id String? @db.VarChar(256)
879
+ source_entity_label String? @db.VarChar(256)
880
+ source_entity_data String?
881
+ destination_type String? @db.VarChar(256)
882
+ destination_entity_id String? @db.VarChar(256)
883
+ destination_entity_label String? @db.VarChar(256)
884
+ destination_submit_payload String?
885
+ destination_submit_response String?
3049
886
  }
3050
887
 
3051
888
  model scheduler_requests {
@@ -3054,8 +891,8 @@ model scheduler_requests {
3054
891
  createuserid BigInt @default(0)
3055
892
  updatedatetime DateTime? @db.Timestamptz(6)
3056
893
  updateuserid BigInt @default(0)
3057
- isdelete Boolean? @default(false)
3058
- istrash Boolean? @default(false)
894
+ isdelete Boolean @default(false)
895
+ istrash Boolean @default(false)
3059
896
  accountid BigInt @default(0)
3060
897
  field_ref String @db.VarChar(256)
3061
898
  field_module String @db.VarChar(256)
@@ -3066,76 +903,87 @@ model scheduler_requests {
3066
903
  destination_entity_id String? @db.VarChar(256)
3067
904
  destination_entity_label String? @db.VarChar(256)
3068
905
  request_action String @db.VarChar(256)
3069
- attempt_no BigInt? @default(0)
906
+ attempt_no BigInt @default(0)
3070
907
  attempt_status Boolean @default(false)
3071
908
  attempt_result String?
3072
909
  attempt_datetime DateTime? @db.Timestamptz(6)
3073
-
3074
- @@schema("public")
3075
910
  }
3076
911
 
3077
- model items {
3078
- item_id BigInt @id(map: "items_pkey1") @default(autoincrement())
3079
- createdatetime DateTime? @db.Timestamptz(6)
3080
- createuserid BigInt @default(0)
3081
- updatedatetime DateTime? @db.Timestamptz(6)
3082
- updateuserid BigInt @default(0)
3083
- isdelete Boolean? @default(false)
3084
- istrash Boolean? @default(false)
3085
- accountid BigInt @default(0)
3086
- product_id BigInt @default(0)
3087
- uom_id BigInt @default(0)
3088
- uom_name String? @db.VarChar(128)
3089
- uom_code String @default(dbgenerated("0")) @db.VarChar(128)
3090
- item_code String? @db.VarChar(255)
3091
- item_description String? @db.VarChar(256)
3092
- item_cost Decimal? @default(0.0000) @db.Decimal(10, 4)
3093
- item_price Decimal? @default(0.0000) @db.Decimal(15, 4)
3094
- floor_price Decimal? @default(0.0000) @db.Decimal(10, 4)
3095
- remark String? @db.VarChar(256)
3096
- summary String? @db.VarChar(256)
3097
- gross_weight Decimal? @default(0.0000) @db.Decimal(10, 4)
3098
- net_weight Decimal? @default(0.0000) @db.Decimal(10, 4)
3099
- volume_weight Decimal? @default(0.0000) @db.Decimal(10, 4)
3100
- dimension_width Decimal? @default(0.0000) @db.Decimal(10, 4)
3101
- dimension_height Decimal? @default(0.0000) @db.Decimal(10, 4)
3102
- dimension_length Decimal? @default(0.0000) @db.Decimal(10, 4)
3103
- cbm Decimal? @default(0.0000) @db.Decimal(10, 4)
3104
- balance_quantity Decimal @default(0.0000) @db.Decimal(10, 4)
3105
- status Boolean? @default(false)
3106
- is_package Boolean? @default(false)
912
+ // ============================================================
913
+ // INJECTION FIELDS
914
+ // ============================================================
3107
915
 
3108
- @@schema("public")
916
+ model injection_fields {
917
+ injection_field_id BigInt @id @default(autoincrement())
918
+ createdatetime DateTime? @db.Timestamptz(6)
919
+ createuserid BigInt @default(0)
920
+ updatedatetime DateTime? @db.Timestamptz(6)
921
+ updateuserid BigInt @default(0)
922
+ isdelete Boolean @default(false)
923
+ istrash Boolean @default(false)
924
+ accountid BigInt @default(0)
925
+ field_module String? @db.VarChar(200)
926
+ field_ref String? @db.VarChar(200)
927
+ field_key String? @db.VarChar(256)
928
+ field_name String? @db.VarChar(256)
929
+ field_type String? @db.VarChar(256)
930
+ is_multiple BigInt? @default(0)
931
+ multiple_count BigInt? @default(0)
932
+ merge_multiple_inline BigInt @default(0)
3109
933
  }
3110
934
 
3111
- model items2 {
3112
- item_id BigInt @id(map: "items_pkey") @default(autoincrement())
3113
- createdatetime DateTime? @db.Timestamptz(6)
3114
- createuserid BigInt
3115
- updatedatetime DateTime? @db.Timestamptz(6)
3116
- updateuserid BigInt
3117
- isdelete Boolean? @default(false)
3118
- istrash Boolean? @default(false)
3119
- accountid BigInt
3120
- product_id BigInt
3121
- uom_id BigInt
3122
- item_code String? @db.VarChar(255)
3123
- item_description String? @db.VarChar(256)
3124
- item_cost Decimal? @db.Decimal(10, 4)
3125
- item_price Decimal? @db.Decimal(15, 4)
3126
- floor_price Decimal? @db.Decimal(10, 4)
3127
- remark String? @db.VarChar(256)
3128
- summary String? @db.VarChar(256)
3129
- gross_weight Decimal? @db.Decimal(10, 4)
3130
- net_weight Decimal? @db.Decimal(10, 4)
3131
- volume_weight Decimal? @db.Decimal(10, 4)
3132
- dimension_width Decimal? @db.Decimal(10, 4)
3133
- dimension_height Decimal? @db.Decimal(10, 4)
3134
- dimension_length Decimal? @db.Decimal(10, 4)
3135
- cbm Decimal? @db.Decimal(10, 4)
3136
- balance_quantity Decimal? @db.Decimal(10, 4)
3137
- status Boolean? @default(false)
3138
- is_package Boolean @default(false)
935
+ model item_injection_fields {
936
+ item_injection_field_id BigInt @id @default(autoincrement())
937
+ createdatetime DateTime? @db.Timestamptz(6)
938
+ createuserid BigInt @default(0)
939
+ updatedatetime DateTime? @db.Timestamptz(6)
940
+ updateuserid BigInt @default(0)
941
+ isdelete Boolean @default(false)
942
+ istrash Boolean @default(false)
943
+ accountid BigInt @default(0)
944
+ field_module String? @db.VarChar(200)
945
+ field_ref String? @db.VarChar(200)
946
+ item_id BigInt @default(0)
947
+ item_uid_id BigInt @default(0)
948
+ product_id BigInt @default(0)
949
+ category_id BigInt @default(0)
950
+ brand_id BigInt @default(0)
951
+ uom_id BigInt @default(0)
952
+ }
3139
953
 
3140
- @@schema("public")
954
+ model document_injection_fields {
955
+ document_injection_field_id BigInt @id @default(autoincrement())
956
+ createdatetime DateTime? @db.Timestamptz(6)
957
+ createuserid BigInt @default(0)
958
+ updatedatetime DateTime? @db.Timestamptz(6)
959
+ updateuserid BigInt @default(0)
960
+ isdelete Boolean @default(false)
961
+ istrash Boolean @default(false)
962
+ accountid BigInt @default(0)
963
+ field_module String? @db.VarChar(200)
964
+ field_ref String? @db.VarChar(200)
965
+ document_id BigInt @default(0)
966
+ document_item_id BigInt @default(0)
967
+ document_doc_id BigInt @default(0)
3141
968
  }
969
+
970
+ // ============================================================
971
+ // UTILS
972
+ // ============================================================
973
+
974
+ model number_date_sequences {
975
+ number_date_sequence_id BigInt @id @default(autoincrement())
976
+ createdatetime DateTime? @db.Timestamptz(6)
977
+ createuserid BigInt @default(0)
978
+ updatedatetime DateTime? @db.Timestamptz(6)
979
+ updateuserid BigInt @default(0)
980
+ isdelete Boolean @default(false)
981
+ istrash Boolean @default(false)
982
+ accountid BigInt @default(0)
983
+ field_ref String? @db.VarChar(128)
984
+ field_module String? @db.VarChar(128)
985
+ year_label String? @db.VarChar(10)
986
+ month_label String? @db.VarChar(255)
987
+ day_label String? @db.VarChar(255)
988
+ increment_no Int @default(0)
989
+ }