feat: add config module with controller and service

- Implemented ConfigController for handling config-related requests.
- Created ConfigService for business logic related to configurations.
- Added CreateConfigDto for validating configuration data.

feat: add good categories module with controller and service

- Implemented GoodCategoriesController for managing good categories.
- Created GoodCategoriesService for business logic related to good categories.
- Added CreateGoodCategoryDto for validating good category data.

feat: add goods module with controller and service

- Implemented GoodsController for managing goods.
- Created GoodsService for business logic related to goods.
- Added CreateGoodDto for validating good data.

feat: add profile module with controller and service

- Implemented ProfileController for managing user profiles.
- Created ProfileService for business logic related to profiles.
- Added CreateProfileDto for profile data structure.

feat: add sales invoice payments module with controller and service

- Implemented SalesInvoicePaymentsController for managing invoice payments.
- Created SalesInvoicePaymentsService for business logic related to payments.
- Added CreateSalesInvoicePaymentDto for validating payment data.

feat: add service categories module with controller and service

- Implemented ServiceCategoriesController for managing service categories.
- Created ServiceCategoriesService for business logic related to service categories.
- Added CreateServiceCategoryDto for validating service category data.

feat: add services module with controller and service

- Implemented ServicesController for managing services.
- Created ServicesService for business logic related to services.
- Added CreateServiceDto for validating service data.

feat: add trigger logs module with controller and service

- Implemented TriggerLogsController for managing trigger logs.
- Created TriggerLogsService for business logic related to trigger logs.
- Added CreateTriggerLogDto for validating trigger log data.

feat: add uploaders module for handling file uploads

- Implemented UploadersController for managing file uploads.
- Created ImageUploaderService for image upload logic.
- Created UploaderService for file handling and storage.
This commit is contained in:
2026-02-12 20:31:04 +03:30
parent de14d531e1
commit a073af76fe
116 changed files with 6108 additions and 3977 deletions
File diff suppressed because one or more lines are too long
+300 -141
View File
@@ -384,9 +384,10 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
export const ModelName = {
Customer: 'Customer',
Device: 'Device',
Good: 'Good',
GoodCategory: 'GoodCategory',
Customer: 'Customer',
TriggerLog: 'TriggerLog',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
@@ -408,10 +409,142 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
omit: GlobalOmitOptions
}
meta: {
modelProps: "good" | "goodCategory" | "customer" | "triggerLog" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
modelProps: "customer" | "device" | "good" | "goodCategory" | "triggerLog" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
txIsolationLevel: TransactionIsolationLevel
}
model: {
Customer: {
payload: Prisma.$CustomerPayload<ExtArgs>
fields: Prisma.CustomerFieldRefs
operations: {
findUnique: {
args: Prisma.CustomerFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findUniqueOrThrow: {
args: Prisma.CustomerFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findFirst: {
args: Prisma.CustomerFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findFirstOrThrow: {
args: Prisma.CustomerFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findMany: {
args: Prisma.CustomerFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>[]
}
create: {
args: Prisma.CustomerCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
createMany: {
args: Prisma.CustomerCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.CustomerDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
update: {
args: Prisma.CustomerUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
deleteMany: {
args: Prisma.CustomerDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.CustomerUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.CustomerUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
aggregate: {
args: Prisma.CustomerAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateCustomer>
}
groupBy: {
args: Prisma.CustomerGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerGroupByOutputType>[]
}
count: {
args: Prisma.CustomerCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerCountAggregateOutputType> | number
}
}
}
Device: {
payload: Prisma.$DevicePayload<ExtArgs>
fields: Prisma.DeviceFieldRefs
operations: {
findUnique: {
args: Prisma.DeviceFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload> | null
}
findUniqueOrThrow: {
args: Prisma.DeviceFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
findFirst: {
args: Prisma.DeviceFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload> | null
}
findFirstOrThrow: {
args: Prisma.DeviceFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
findMany: {
args: Prisma.DeviceFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>[]
}
create: {
args: Prisma.DeviceCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
createMany: {
args: Prisma.DeviceCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.DeviceDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
update: {
args: Prisma.DeviceUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
deleteMany: {
args: Prisma.DeviceDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.DeviceUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.DeviceUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
aggregate: {
args: Prisma.DeviceAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateDevice>
}
groupBy: {
args: Prisma.DeviceGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceGroupByOutputType>[]
}
count: {
args: Prisma.DeviceCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceCountAggregateOutputType> | number
}
}
}
Good: {
payload: Prisma.$GoodPayload<ExtArgs>
fields: Prisma.GoodFieldRefs
@@ -544,72 +677,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
}
}
}
Customer: {
payload: Prisma.$CustomerPayload<ExtArgs>
fields: Prisma.CustomerFieldRefs
operations: {
findUnique: {
args: Prisma.CustomerFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findUniqueOrThrow: {
args: Prisma.CustomerFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findFirst: {
args: Prisma.CustomerFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload> | null
}
findFirstOrThrow: {
args: Prisma.CustomerFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
findMany: {
args: Prisma.CustomerFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>[]
}
create: {
args: Prisma.CustomerCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
createMany: {
args: Prisma.CustomerCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.CustomerDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
update: {
args: Prisma.CustomerUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
deleteMany: {
args: Prisma.CustomerDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.CustomerUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.CustomerUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$CustomerPayload>
}
aggregate: {
args: Prisma.CustomerAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateCustomer>
}
groupBy: {
args: Prisma.CustomerGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerGroupByOutputType>[]
}
count: {
args: Prisma.CustomerCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.CustomerCountAggregateOutputType> | number
}
}
}
TriggerLog: {
payload: Prisma.$TriggerLogPayload<ExtArgs>
fields: Prisma.TriggerLogFieldRefs
@@ -1045,18 +1112,57 @@ export const TransactionIsolationLevel = runtime.makeStrictEnum({
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const CustomerScalarFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
is_active: 'is_active',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const DeviceScalarFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
export const GoodScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
localSku: 'localSku',
local_sku: 'local_sku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
categoryId: 'categoryId',
baseSalePrice: 'baseSalePrice'
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
@@ -1066,31 +1172,17 @@ export const GoodCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
export const CustomerScalarFieldEnum = {
id: 'id',
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
address: 'address',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
} as const
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const TriggerLogScalarFieldEnum = {
id: 'id',
message: 'message',
@@ -1104,11 +1196,13 @@ export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
totalAmount: 'totalAmount',
total_amount: 'total_amount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
customerId: 'customerId'
created_at: 'created_at',
updated_at: 'updated_at',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
@@ -1117,12 +1211,12 @@ export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[k
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
createdAt: 'createdAt',
invoiceId: 'invoiceId',
goodId: 'goodId',
serviceId: 'serviceId'
unit_price: 'unit_price',
total_amount: 'total_amount',
created_at: 'created_at',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
@@ -1130,11 +1224,11 @@ export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFiel
export const SalesInvoicePaymentScalarFieldEnum = {
id: 'id',
invoiceId: 'invoiceId',
invoice_id: 'invoice_id',
amount: 'amount',
paymentMethod: 'paymentMethod',
paidAt: 'paidAt',
createdAt: 'createdAt'
payment_method: 'payment_method',
paid_at: 'paid_at',
created_at: 'created_at'
} as const
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
@@ -1145,12 +1239,15 @@ export const ServiceScalarFieldEnum = {
name: 'name',
description: 'description',
sku: 'sku',
local_sku: 'local_sku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
categoryId: 'categoryId',
baseSalePrice: 'baseSalePrice'
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
@@ -1160,10 +1257,12 @@ export const ServiceCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]
@@ -1185,37 +1284,66 @@ export const NullsOrder = {
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const CustomerOrderByRelevanceFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const DeviceOrderByRelevanceFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFieldEnum)[keyof typeof DeviceOrderByRelevanceFieldEnum]
export const GoodOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
localSku: 'localSku',
barcode: 'barcode'
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
export const GoodCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
export const CustomerOrderByRelevanceFieldEnum = {
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
address: 'address'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const TriggerLogOrderByRelevanceFieldEnum = {
message: 'message',
name: 'name'
@@ -1225,27 +1353,57 @@ export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelev
export const SalesInvoiceOrderByRelevanceFieldEnum = {
id: 'id',
code: 'code',
description: 'description'
description: 'description',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id'
} as const
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
export const ServiceOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode'
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
export const ServiceCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]
@@ -1258,16 +1416,16 @@ export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOr
/**
* Reference to a field of type 'Int'
* Reference to a field of type 'String'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String'
* Reference to a field of type 'Boolean'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
@@ -1286,9 +1444,9 @@ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
/**
* Reference to a field of type 'Boolean'
* Reference to a field of type 'Int'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
@@ -1400,9 +1558,10 @@ export type PrismaClientOptions = ({
comments?: runtime.SqlCommenterPlugin[]
}
export type GlobalOmitConfig = {
customer?: Prisma.CustomerOmit
device?: Prisma.DeviceOmit
good?: Prisma.GoodOmit
goodCategory?: Prisma.GoodCategoryOmit
customer?: Prisma.CustomerOmit
triggerLog?: Prisma.TriggerLogOmit
salesInvoice?: Prisma.SalesInvoiceOmit
salesInvoiceItem?: Prisma.SalesInvoiceItemOmit
@@ -51,9 +51,10 @@ export const AnyNull = runtime.AnyNull
export const ModelName = {
Customer: 'Customer',
Device: 'Device',
Good: 'Good',
GoodCategory: 'GoodCategory',
Customer: 'Customer',
TriggerLog: 'TriggerLog',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
@@ -78,18 +79,57 @@ export const TransactionIsolationLevel = {
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const CustomerScalarFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
is_active: 'is_active',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const DeviceScalarFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
export const GoodScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
localSku: 'localSku',
local_sku: 'local_sku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
categoryId: 'categoryId',
baseSalePrice: 'baseSalePrice'
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
@@ -99,31 +139,17 @@ export const GoodCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
export const CustomerScalarFieldEnum = {
id: 'id',
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
address: 'address',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
} as const
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const TriggerLogScalarFieldEnum = {
id: 'id',
message: 'message',
@@ -137,11 +163,13 @@ export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
totalAmount: 'totalAmount',
total_amount: 'total_amount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
customerId: 'customerId'
created_at: 'created_at',
updated_at: 'updated_at',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
@@ -150,12 +178,12 @@ export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[k
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
createdAt: 'createdAt',
invoiceId: 'invoiceId',
goodId: 'goodId',
serviceId: 'serviceId'
unit_price: 'unit_price',
total_amount: 'total_amount',
created_at: 'created_at',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
@@ -163,11 +191,11 @@ export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFiel
export const SalesInvoicePaymentScalarFieldEnum = {
id: 'id',
invoiceId: 'invoiceId',
invoice_id: 'invoice_id',
amount: 'amount',
paymentMethod: 'paymentMethod',
paidAt: 'paidAt',
createdAt: 'createdAt'
payment_method: 'payment_method',
paid_at: 'paid_at',
created_at: 'created_at'
} as const
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
@@ -178,12 +206,15 @@ export const ServiceScalarFieldEnum = {
name: 'name',
description: 'description',
sku: 'sku',
local_sku: 'local_sku',
barcode: 'barcode',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
categoryId: 'categoryId',
baseSalePrice: 'baseSalePrice'
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
category_id: 'category_id',
base_sale_price: 'base_sale_price',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
@@ -193,10 +224,12 @@ export const ServiceCategoryScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at'
} as const
export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]
@@ -218,37 +251,66 @@ export const NullsOrder = {
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const CustomerOrderByRelevanceFieldEnum = {
id: 'id',
first_name: 'first_name',
last_name: 'last_name',
email: 'email',
mobile_number: 'mobile_number',
address: 'address',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const DeviceOrderByRelevanceFieldEnum = {
account_id: 'account_id',
app_version: 'app_version',
build_number: 'build_number',
uuid: 'uuid',
platform: 'platform',
brand: 'brand',
model: 'model',
device: 'device',
os_version: 'os_version',
sdk_version: 'sdk_version',
release_number: 'release_number',
browser_name: 'browser_name',
fcm_token: 'fcm_token'
} as const
export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFieldEnum)[keyof typeof DeviceOrderByRelevanceFieldEnum]
export const GoodOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
localSku: 'localSku',
barcode: 'barcode'
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
export const GoodCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
export const CustomerOrderByRelevanceFieldEnum = {
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
mobileNumber: 'mobileNumber',
address: 'address'
} as const
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const TriggerLogOrderByRelevanceFieldEnum = {
message: 'message',
name: 'name'
@@ -258,27 +320,57 @@ export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelev
export const SalesInvoiceOrderByRelevanceFieldEnum = {
id: 'id',
code: 'code',
description: 'description'
description: 'description',
customer_id: 'customer_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id',
good_id: 'good_id',
service_id: 'service_id'
} as const
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
id: 'id',
invoice_id: 'invoice_id'
} as const
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
export const ServiceOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode'
local_sku: 'local_sku',
barcode: 'barcode',
category_id: 'category_id',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
export const ServiceCategoryOrderByRelevanceFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
imageUrl: 'imageUrl'
image_url: 'image_url',
account_id: 'account_id',
complex_id: 'complex_id'
} as const
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]