update models and create consumer domain accounts permissions
This commit is contained in:
@@ -51,25 +51,25 @@ export const AnyNull = runtime.AnyNull
|
||||
|
||||
|
||||
export const ModelName = {
|
||||
Admin: 'Admin',
|
||||
AdminAccount: 'AdminAccount',
|
||||
Admin: 'Admin',
|
||||
Account: 'Account',
|
||||
Consumer: 'Consumer',
|
||||
ConsumerAccount: 'ConsumerAccount',
|
||||
Consumer: 'Consumer',
|
||||
BusinessActivity: 'BusinessActivity',
|
||||
Complex: 'Complex',
|
||||
Pos: 'Pos',
|
||||
DeviceBrand: 'DeviceBrand',
|
||||
Device: 'Device',
|
||||
License: 'License',
|
||||
Partner: 'Partner',
|
||||
PartnerAccount: 'PartnerAccount',
|
||||
Partner: 'Partner',
|
||||
PermissionConsumer: 'PermissionConsumer',
|
||||
PermissionPos: 'PermissionPos',
|
||||
PermissionComplex: 'PermissionComplex',
|
||||
PermissionBusiness: 'PermissionBusiness',
|
||||
Provider: 'Provider',
|
||||
ProviderAccount: 'ProviderAccount',
|
||||
Provider: 'Provider',
|
||||
TriggerLog: 'TriggerLog',
|
||||
UserDevices: 'UserDevices',
|
||||
Customer: 'Customer',
|
||||
@@ -101,6 +101,17 @@ export const TransactionIsolationLevel = {
|
||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
||||
|
||||
|
||||
export const AdminAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
admin_id: 'admin_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type AdminAccountScalarFieldEnum = (typeof AdminAccountScalarFieldEnum)[keyof typeof AdminAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const AdminScalarFieldEnum = {
|
||||
id: 'id',
|
||||
mobile_number: 'mobile_number',
|
||||
@@ -114,17 +125,6 @@ export const AdminScalarFieldEnum = {
|
||||
export type AdminScalarFieldEnum = (typeof AdminScalarFieldEnum)[keyof typeof AdminScalarFieldEnum]
|
||||
|
||||
|
||||
export const AdminAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type AdminAccountScalarFieldEnum = (typeof AdminAccountScalarFieldEnum)[keyof typeof AdminAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const AccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
username: 'username',
|
||||
@@ -136,13 +136,24 @@ export const AccountScalarFieldEnum = {
|
||||
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
consumer_id: 'consumer_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ConsumerAccountScalarFieldEnum = (typeof ConsumerAccountScalarFieldEnum)[keyof typeof ConsumerAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
mobile_number: 'mobile_number',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name',
|
||||
status: 'status',
|
||||
license_id: 'license_id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at'
|
||||
} as const
|
||||
@@ -150,25 +161,13 @@ export const ConsumerScalarFieldEnum = {
|
||||
export type ConsumerScalarFieldEnum = (typeof ConsumerScalarFieldEnum)[keyof typeof ConsumerScalarFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ConsumerAccountScalarFieldEnum = (typeof ConsumerAccountScalarFieldEnum)[keyof typeof ConsumerAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const BusinessActivityScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
guild_id: 'guild_id',
|
||||
user_id: 'user_id'
|
||||
consumer_id: 'consumer_id'
|
||||
} as const
|
||||
|
||||
export type BusinessActivityScalarFieldEnum = (typeof BusinessActivityScalarFieldEnum)[keyof typeof BusinessActivityScalarFieldEnum]
|
||||
@@ -240,6 +239,18 @@ export const LicenseScalarFieldEnum = {
|
||||
export type LicenseScalarFieldEnum = (typeof LicenseScalarFieldEnum)[keyof typeof LicenseScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
partner_id: 'partner_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountScalarFieldEnum = (typeof PartnerAccountScalarFieldEnum)[keyof typeof PartnerAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -253,21 +264,9 @@ export const PartnerScalarFieldEnum = {
|
||||
export type PartnerScalarFieldEnum = (typeof PartnerScalarFieldEnum)[keyof typeof PartnerScalarFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountScalarFieldEnum = (typeof PartnerAccountScalarFieldEnum)[keyof typeof PartnerAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const PermissionConsumerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
account_id: 'account_id'
|
||||
consumer_account_id: 'consumer_account_id'
|
||||
} as const
|
||||
|
||||
export type PermissionConsumerScalarFieldEnum = (typeof PermissionConsumerScalarFieldEnum)[keyof typeof PermissionConsumerScalarFieldEnum]
|
||||
@@ -303,6 +302,18 @@ export const PermissionBusinessScalarFieldEnum = {
|
||||
export type PermissionBusinessScalarFieldEnum = (typeof PermissionBusinessScalarFieldEnum)[keyof typeof PermissionBusinessScalarFieldEnum]
|
||||
|
||||
|
||||
export const ProviderAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
provider_id: 'provider_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ProviderAccountScalarFieldEnum = (typeof ProviderAccountScalarFieldEnum)[keyof typeof ProviderAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const ProviderScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
@@ -315,18 +326,6 @@ export const ProviderScalarFieldEnum = {
|
||||
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
||||
|
||||
|
||||
export const ProviderAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
role: 'role',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ProviderAccountScalarFieldEnum = (typeof ProviderAccountScalarFieldEnum)[keyof typeof ProviderAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogScalarFieldEnum = {
|
||||
id: 'id',
|
||||
message: 'message',
|
||||
@@ -539,6 +538,15 @@ export const NullableJsonNullValueInput = {
|
||||
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
||||
|
||||
|
||||
export const AdminAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
admin_id: 'admin_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type AdminAccountOrderByRelevanceFieldEnum = (typeof AdminAccountOrderByRelevanceFieldEnum)[keyof typeof AdminAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
@@ -558,15 +566,6 @@ export const AdminOrderByRelevanceFieldEnum = {
|
||||
export type AdminOrderByRelevanceFieldEnum = (typeof AdminOrderByRelevanceFieldEnum)[keyof typeof AdminOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const AdminAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type AdminAccountOrderByRelevanceFieldEnum = (typeof AdminAccountOrderByRelevanceFieldEnum)[keyof typeof AdminAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const AccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
username: 'username',
|
||||
@@ -576,31 +575,30 @@ export const AccountOrderByRelevanceFieldEnum = {
|
||||
export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
mobile_number: 'mobile_number',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name',
|
||||
license_id: 'license_id'
|
||||
} as const
|
||||
|
||||
export type ConsumerOrderByRelevanceFieldEnum = (typeof ConsumerOrderByRelevanceFieldEnum)[keyof typeof ConsumerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
consumer_id: 'consumer_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ConsumerAccountOrderByRelevanceFieldEnum = (typeof ConsumerAccountOrderByRelevanceFieldEnum)[keyof typeof ConsumerAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ConsumerOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
mobile_number: 'mobile_number',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name'
|
||||
} as const
|
||||
|
||||
export type ConsumerOrderByRelevanceFieldEnum = (typeof ConsumerOrderByRelevanceFieldEnum)[keyof typeof ConsumerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BusinessActivityOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
guild_id: 'guild_id',
|
||||
user_id: 'user_id'
|
||||
consumer_id: 'consumer_id'
|
||||
} as const
|
||||
|
||||
export type BusinessActivityOrderByRelevanceFieldEnum = (typeof BusinessActivityOrderByRelevanceFieldEnum)[keyof typeof BusinessActivityOrderByRelevanceFieldEnum]
|
||||
@@ -657,6 +655,15 @@ export const LicenseOrderByRelevanceFieldEnum = {
|
||||
export type LicenseOrderByRelevanceFieldEnum = (typeof LicenseOrderByRelevanceFieldEnum)[keyof typeof LicenseOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
partner_id: 'partner_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountOrderByRelevanceFieldEnum = (typeof PartnerAccountOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -666,18 +673,9 @@ export const PartnerOrderByRelevanceFieldEnum = {
|
||||
export type PartnerOrderByRelevanceFieldEnum = (typeof PartnerOrderByRelevanceFieldEnum)[keyof typeof PartnerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PartnerAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type PartnerAccountOrderByRelevanceFieldEnum = (typeof PartnerAccountOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PermissionConsumerOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
account_id: 'account_id'
|
||||
consumer_account_id: 'consumer_account_id'
|
||||
} as const
|
||||
|
||||
export type PermissionConsumerOrderByRelevanceFieldEnum = (typeof PermissionConsumerOrderByRelevanceFieldEnum)[keyof typeof PermissionConsumerOrderByRelevanceFieldEnum]
|
||||
@@ -710,6 +708,15 @@ export const PermissionBusinessOrderByRelevanceFieldEnum = {
|
||||
export type PermissionBusinessOrderByRelevanceFieldEnum = (typeof PermissionBusinessOrderByRelevanceFieldEnum)[keyof typeof PermissionBusinessOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ProviderAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
provider_id: 'provider_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ProviderAccountOrderByRelevanceFieldEnum = (typeof ProviderAccountOrderByRelevanceFieldEnum)[keyof typeof ProviderAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ProviderOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
@@ -719,15 +726,6 @@ export const ProviderOrderByRelevanceFieldEnum = {
|
||||
export type ProviderOrderByRelevanceFieldEnum = (typeof ProviderOrderByRelevanceFieldEnum)[keyof typeof ProviderOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ProviderAccountOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
user_id: 'user_id',
|
||||
account_id: 'account_id'
|
||||
} as const
|
||||
|
||||
export type ProviderAccountOrderByRelevanceFieldEnum = (typeof ProviderAccountOrderByRelevanceFieldEnum)[keyof typeof ProviderAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||
message: 'message',
|
||||
name: 'name'
|
||||
|
||||
Reference in New Issue
Block a user