update license structures and setup file storage services

This commit is contained in:
2026-04-16 22:19:20 +03:30
parent d098ef10e1
commit ca494ee82a
75 changed files with 4550 additions and 1255 deletions
File diff suppressed because one or more lines are too long
+189 -23
View File
@@ -395,6 +395,8 @@ export const ModelName = {
DeviceBrand: 'DeviceBrand',
Device: 'Device',
License: 'License',
ActivatedLicense: 'ActivatedLicense',
ChargedLicenseTransactions: 'ChargedLicenseTransactions',
PartnerAccount: 'PartnerAccount',
Partner: 'Partner',
PermissionConsumer: 'PermissionConsumer',
@@ -431,7 +433,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
omit: GlobalOmitOptions
}
meta: {
modelProps: "adminAccount" | "admin" | "account" | "consumerAccount" | "consumer" | "businessActivity" | "complex" | "pos" | "deviceBrand" | "device" | "license" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "triggerLog" | "userDevices" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
modelProps: "adminAccount" | "admin" | "account" | "consumerAccount" | "consumer" | "businessActivity" | "complex" | "pos" | "deviceBrand" | "device" | "license" | "activatedLicense" | "chargedLicenseTransactions" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "triggerLog" | "userDevices" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "salesInvoicePayment" | "service" | "serviceCategory"
txIsolationLevel: TransactionIsolationLevel
}
model: {
@@ -1161,6 +1163,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
}
}
}
ActivatedLicense: {
payload: Prisma.$ActivatedLicensePayload<ExtArgs>
fields: Prisma.ActivatedLicenseFieldRefs
operations: {
findUnique: {
args: Prisma.ActivatedLicenseFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload> | null
}
findUniqueOrThrow: {
args: Prisma.ActivatedLicenseFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
findFirst: {
args: Prisma.ActivatedLicenseFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload> | null
}
findFirstOrThrow: {
args: Prisma.ActivatedLicenseFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
findMany: {
args: Prisma.ActivatedLicenseFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>[]
}
create: {
args: Prisma.ActivatedLicenseCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
createMany: {
args: Prisma.ActivatedLicenseCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.ActivatedLicenseDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
update: {
args: Prisma.ActivatedLicenseUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
deleteMany: {
args: Prisma.ActivatedLicenseDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ActivatedLicenseUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ActivatedLicenseUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ActivatedLicensePayload>
}
aggregate: {
args: Prisma.ActivatedLicenseAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateActivatedLicense>
}
groupBy: {
args: Prisma.ActivatedLicenseGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ActivatedLicenseGroupByOutputType>[]
}
count: {
args: Prisma.ActivatedLicenseCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ActivatedLicenseCountAggregateOutputType> | number
}
}
}
ChargedLicenseTransactions: {
payload: Prisma.$ChargedLicenseTransactionsPayload<ExtArgs>
fields: Prisma.ChargedLicenseTransactionsFieldRefs
operations: {
findUnique: {
args: Prisma.ChargedLicenseTransactionsFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ChargedLicenseTransactionsFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
findFirst: {
args: Prisma.ChargedLicenseTransactionsFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload> | null
}
findFirstOrThrow: {
args: Prisma.ChargedLicenseTransactionsFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
findMany: {
args: Prisma.ChargedLicenseTransactionsFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>[]
}
create: {
args: Prisma.ChargedLicenseTransactionsCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
createMany: {
args: Prisma.ChargedLicenseTransactionsCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.ChargedLicenseTransactionsDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
update: {
args: Prisma.ChargedLicenseTransactionsUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
deleteMany: {
args: Prisma.ChargedLicenseTransactionsDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ChargedLicenseTransactionsUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ChargedLicenseTransactionsUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ChargedLicenseTransactionsPayload>
}
aggregate: {
args: Prisma.ChargedLicenseTransactionsAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateChargedLicenseTransactions>
}
groupBy: {
args: Prisma.ChargedLicenseTransactionsGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ChargedLicenseTransactionsGroupByOutputType>[]
}
count: {
args: Prisma.ChargedLicenseTransactionsCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ChargedLicenseTransactionsCountAggregateOutputType> | number
}
}
}
PartnerAccount: {
payload: Prisma.$PartnerAccountPayload<ExtArgs>
fields: Prisma.PartnerAccountFieldRefs
@@ -2712,18 +2846,38 @@ export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof
export const LicenseScalarFieldEnum = {
id: 'id',
starts_at: 'starts_at',
expires_at: 'expires_at',
status: 'status',
created_at: 'created_at',
updated_at: 'updated_at',
partner_id: 'partner_id',
consumer_id: 'consumer_id'
charged_license_transaction_id: 'charged_license_transaction_id'
} as const
export type LicenseScalarFieldEnum = (typeof LicenseScalarFieldEnum)[keyof typeof LicenseScalarFieldEnum]
export const ActivatedLicenseScalarFieldEnum = {
id: 'id',
starts_at: 'starts_at',
expires_at: 'expires_at',
created_at: 'created_at',
updated_at: 'updated_at',
license_id: 'license_id',
consumer_id: 'consumer_id'
} as const
export type ActivatedLicenseScalarFieldEnum = (typeof ActivatedLicenseScalarFieldEnum)[keyof typeof ActivatedLicenseScalarFieldEnum]
export const ChargedLicenseTransactionsScalarFieldEnum = {
id: 'id',
activation_expires_at: 'activation_expires_at',
created_at: 'created_at',
updated_at: 'updated_at',
partner_id: 'partner_id'
} as const
export type ChargedLicenseTransactionsScalarFieldEnum = (typeof ChargedLicenseTransactionsScalarFieldEnum)[keyof typeof ChargedLicenseTransactionsScalarFieldEnum]
export const PartnerAccountScalarFieldEnum = {
id: 'id',
role: 'role',
@@ -2740,7 +2894,6 @@ export const PartnerScalarFieldEnum = {
id: 'id',
name: 'name',
code: 'code',
license_quota: 'license_quota',
status: 'status',
created_at: 'created_at',
updated_at: 'updated_at'
@@ -2889,6 +3042,7 @@ export const GoodScalarFieldEnum = {
local_sku: 'local_sku',
barcode: 'barcode',
base_sale_price: 'base_sale_price',
image_url: 'image_url',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
@@ -3133,13 +3287,29 @@ export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFiel
export const LicenseOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id',
consumer_id: 'consumer_id'
charged_license_transaction_id: 'charged_license_transaction_id'
} as const
export type LicenseOrderByRelevanceFieldEnum = (typeof LicenseOrderByRelevanceFieldEnum)[keyof typeof LicenseOrderByRelevanceFieldEnum]
export const ActivatedLicenseOrderByRelevanceFieldEnum = {
id: 'id',
license_id: 'license_id',
consumer_id: 'consumer_id'
} as const
export type ActivatedLicenseOrderByRelevanceFieldEnum = (typeof ActivatedLicenseOrderByRelevanceFieldEnum)[keyof typeof ActivatedLicenseOrderByRelevanceFieldEnum]
export const ChargedLicenseTransactionsOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id'
} as const
export type ChargedLicenseTransactionsOrderByRelevanceFieldEnum = (typeof ChargedLicenseTransactionsOrderByRelevanceFieldEnum)[keyof typeof ChargedLicenseTransactionsOrderByRelevanceFieldEnum]
export const PartnerAccountOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id',
@@ -3294,6 +3464,7 @@ export const GoodOrderByRelevanceFieldEnum = {
description: 'description',
local_sku: 'local_sku',
barcode: 'barcode',
image_url: 'image_url',
complex_id: 'complex_id',
category_id: 'category_id'
} as const
@@ -3442,13 +3613,6 @@ export type EnumPOSTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaMo
/**
* Reference to a field of type 'LicenseStatus'
*/
export type EnumLicenseStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LicenseStatus'>
/**
* Reference to a field of type 'PartnerRole'
*/
@@ -3456,13 +3620,6 @@ export type EnumPartnerRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$Pris
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'PartnerStatus'
*/
@@ -3498,6 +3655,13 @@ export type EnumProviderRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$Pri
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Boolean'
*/
@@ -3666,6 +3830,8 @@ export type GlobalOmitConfig = {
deviceBrand?: Prisma.DeviceBrandOmit
device?: Prisma.DeviceOmit
license?: Prisma.LicenseOmit
activatedLicense?: Prisma.ActivatedLicenseOmit
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsOmit
partnerAccount?: Prisma.PartnerAccountOmit
partner?: Prisma.PartnerOmit
permissionConsumer?: Prisma.PermissionConsumerOmit
@@ -62,6 +62,8 @@ export const ModelName = {
DeviceBrand: 'DeviceBrand',
Device: 'Device',
License: 'License',
ActivatedLicense: 'ActivatedLicense',
ChargedLicenseTransactions: 'ChargedLicenseTransactions',
PartnerAccount: 'PartnerAccount',
Partner: 'Partner',
PermissionConsumer: 'PermissionConsumer',
@@ -227,18 +229,38 @@ export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof
export const LicenseScalarFieldEnum = {
id: 'id',
starts_at: 'starts_at',
expires_at: 'expires_at',
status: 'status',
created_at: 'created_at',
updated_at: 'updated_at',
partner_id: 'partner_id',
consumer_id: 'consumer_id'
charged_license_transaction_id: 'charged_license_transaction_id'
} as const
export type LicenseScalarFieldEnum = (typeof LicenseScalarFieldEnum)[keyof typeof LicenseScalarFieldEnum]
export const ActivatedLicenseScalarFieldEnum = {
id: 'id',
starts_at: 'starts_at',
expires_at: 'expires_at',
created_at: 'created_at',
updated_at: 'updated_at',
license_id: 'license_id',
consumer_id: 'consumer_id'
} as const
export type ActivatedLicenseScalarFieldEnum = (typeof ActivatedLicenseScalarFieldEnum)[keyof typeof ActivatedLicenseScalarFieldEnum]
export const ChargedLicenseTransactionsScalarFieldEnum = {
id: 'id',
activation_expires_at: 'activation_expires_at',
created_at: 'created_at',
updated_at: 'updated_at',
partner_id: 'partner_id'
} as const
export type ChargedLicenseTransactionsScalarFieldEnum = (typeof ChargedLicenseTransactionsScalarFieldEnum)[keyof typeof ChargedLicenseTransactionsScalarFieldEnum]
export const PartnerAccountScalarFieldEnum = {
id: 'id',
role: 'role',
@@ -255,7 +277,6 @@ export const PartnerScalarFieldEnum = {
id: 'id',
name: 'name',
code: 'code',
license_quota: 'license_quota',
status: 'status',
created_at: 'created_at',
updated_at: 'updated_at'
@@ -404,6 +425,7 @@ export const GoodScalarFieldEnum = {
local_sku: 'local_sku',
barcode: 'barcode',
base_sale_price: 'base_sale_price',
image_url: 'image_url',
created_at: 'created_at',
updated_at: 'updated_at',
deleted_at: 'deleted_at',
@@ -648,13 +670,29 @@ export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFiel
export const LicenseOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id',
consumer_id: 'consumer_id'
charged_license_transaction_id: 'charged_license_transaction_id'
} as const
export type LicenseOrderByRelevanceFieldEnum = (typeof LicenseOrderByRelevanceFieldEnum)[keyof typeof LicenseOrderByRelevanceFieldEnum]
export const ActivatedLicenseOrderByRelevanceFieldEnum = {
id: 'id',
license_id: 'license_id',
consumer_id: 'consumer_id'
} as const
export type ActivatedLicenseOrderByRelevanceFieldEnum = (typeof ActivatedLicenseOrderByRelevanceFieldEnum)[keyof typeof ActivatedLicenseOrderByRelevanceFieldEnum]
export const ChargedLicenseTransactionsOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id'
} as const
export type ChargedLicenseTransactionsOrderByRelevanceFieldEnum = (typeof ChargedLicenseTransactionsOrderByRelevanceFieldEnum)[keyof typeof ChargedLicenseTransactionsOrderByRelevanceFieldEnum]
export const PartnerAccountOrderByRelevanceFieldEnum = {
id: 'id',
partner_id: 'partner_id',
@@ -809,6 +847,7 @@ export const GoodOrderByRelevanceFieldEnum = {
description: 'description',
local_sku: 'local_sku',
barcode: 'barcode',
image_url: 'image_url',
complex_id: 'complex_id',
category_id: 'category_id'
} as const