update admin user business

This commit is contained in:
2026-03-14 16:26:44 +03:30
parent 007db7f9bd
commit d2215b9f04
62 changed files with 1812 additions and 140 deletions
+35 -1
View File
@@ -27,6 +27,7 @@ export type AggregateUser = {
export type UserMinAggregateOutputType = {
id: string | null
created_at: Date | null
updated_at: Date | null
mobile_number: string | null
national_code: string | null
first_name: string | null
@@ -36,6 +37,7 @@ export type UserMinAggregateOutputType = {
export type UserMaxAggregateOutputType = {
id: string | null
created_at: Date | null
updated_at: Date | null
mobile_number: string | null
national_code: string | null
first_name: string | null
@@ -45,6 +47,7 @@ export type UserMaxAggregateOutputType = {
export type UserCountAggregateOutputType = {
id: number
created_at: number
updated_at: number
mobile_number: number
national_code: number
first_name: number
@@ -56,6 +59,7 @@ export type UserCountAggregateOutputType = {
export type UserMinAggregateInputType = {
id?: true
created_at?: true
updated_at?: true
mobile_number?: true
national_code?: true
first_name?: true
@@ -65,6 +69,7 @@ export type UserMinAggregateInputType = {
export type UserMaxAggregateInputType = {
id?: true
created_at?: true
updated_at?: true
mobile_number?: true
national_code?: true
first_name?: true
@@ -74,6 +79,7 @@ export type UserMaxAggregateInputType = {
export type UserCountAggregateInputType = {
id?: true
created_at?: true
updated_at?: true
mobile_number?: true
national_code?: true
first_name?: true
@@ -156,6 +162,7 @@ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArg
export type UserGroupByOutputType = {
id: string
created_at: Date
updated_at: Date
mobile_number: string
national_code: string | null
first_name: string
@@ -186,6 +193,7 @@ export type UserWhereInput = {
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
id?: Prisma.StringFilter<"User"> | string
created_at?: Prisma.DateTimeFilter<"User"> | Date | string
updated_at?: Prisma.DateTimeFilter<"User"> | Date | string
mobile_number?: Prisma.StringFilter<"User"> | string
national_code?: Prisma.StringNullableFilter<"User"> | string | null
first_name?: Prisma.StringFilter<"User"> | string
@@ -197,6 +205,7 @@ export type UserWhereInput = {
export type UserOrderByWithRelationInput = {
id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
national_code?: Prisma.SortOrderInput | Prisma.SortOrder
first_name?: Prisma.SortOrder
@@ -214,6 +223,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
OR?: Prisma.UserWhereInput[]
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
created_at?: Prisma.DateTimeFilter<"User"> | Date | string
updated_at?: Prisma.DateTimeFilter<"User"> | Date | string
first_name?: Prisma.StringFilter<"User"> | string
last_name?: Prisma.StringFilter<"User"> | string
accounts?: Prisma.AccountListRelationFilter
@@ -223,6 +233,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
export type UserOrderByWithAggregationInput = {
id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
national_code?: Prisma.SortOrderInput | Prisma.SortOrder
first_name?: Prisma.SortOrder
@@ -238,6 +249,7 @@ export type UserScalarWhereWithAggregatesInput = {
NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"User"> | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
mobile_number?: Prisma.StringWithAggregatesFilter<"User"> | string
national_code?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
first_name?: Prisma.StringWithAggregatesFilter<"User"> | string
@@ -247,6 +259,7 @@ export type UserScalarWhereWithAggregatesInput = {
export type UserCreateInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -258,6 +271,7 @@ export type UserCreateInput = {
export type UserUncheckedCreateInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -269,6 +283,7 @@ export type UserUncheckedCreateInput = {
export type UserUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -280,6 +295,7 @@ export type UserUpdateInput = {
export type UserUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -291,6 +307,7 @@ export type UserUncheckedUpdateInput = {
export type UserCreateManyInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -300,6 +317,7 @@ export type UserCreateManyInput = {
export type UserUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -309,6 +327,7 @@ export type UserUpdateManyMutationInput = {
export type UserUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -329,6 +348,7 @@ export type UserOrderByRelevanceInput = {
export type UserCountOrderByAggregateInput = {
id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
national_code?: Prisma.SortOrder
first_name?: Prisma.SortOrder
@@ -338,6 +358,7 @@ export type UserCountOrderByAggregateInput = {
export type UserMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
national_code?: Prisma.SortOrder
first_name?: Prisma.SortOrder
@@ -347,6 +368,7 @@ export type UserMaxOrderByAggregateInput = {
export type UserMinOrderByAggregateInput = {
id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
national_code?: Prisma.SortOrder
first_name?: Prisma.SortOrder
@@ -384,6 +406,7 @@ export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
export type UserCreateWithoutBusinessActivitiesInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -394,6 +417,7 @@ export type UserCreateWithoutBusinessActivitiesInput = {
export type UserUncheckedCreateWithoutBusinessActivitiesInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -420,6 +444,7 @@ export type UserUpdateToOneWithWhereWithoutBusinessActivitiesInput = {
export type UserUpdateWithoutBusinessActivitiesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -430,6 +455,7 @@ export type UserUpdateWithoutBusinessActivitiesInput = {
export type UserUncheckedUpdateWithoutBusinessActivitiesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -440,6 +466,7 @@ export type UserUncheckedUpdateWithoutBusinessActivitiesInput = {
export type UserCreateWithoutAccountsInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -450,6 +477,7 @@ export type UserCreateWithoutAccountsInput = {
export type UserUncheckedCreateWithoutAccountsInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
mobile_number: string
national_code?: string | null
first_name: string
@@ -476,6 +504,7 @@ export type UserUpdateToOneWithWhereWithoutAccountsInput = {
export type UserUpdateWithoutAccountsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -486,6 +515,7 @@ export type UserUpdateWithoutAccountsInput = {
export type UserUncheckedUpdateWithoutAccountsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
first_name?: Prisma.StringFieldUpdateOperationsInput | string
@@ -536,6 +566,7 @@ export type UserCountOutputTypeCountBusinessActivitiesArgs<ExtArgs extends runti
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
created_at?: boolean
updated_at?: boolean
mobile_number?: boolean
national_code?: boolean
first_name?: boolean
@@ -550,13 +581,14 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
export type UserSelectScalar = {
id?: boolean
created_at?: boolean
updated_at?: boolean
mobile_number?: boolean
national_code?: boolean
first_name?: boolean
last_name?: boolean
}
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "mobile_number" | "national_code" | "first_name" | "last_name", ExtArgs["result"]["user"]>
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "mobile_number" | "national_code" | "first_name" | "last_name", ExtArgs["result"]["user"]>
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>
businessActivities?: boolean | Prisma.User$businessActivitiesArgs<ExtArgs>
@@ -572,6 +604,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
created_at: Date
updated_at: Date
mobile_number: string
national_code: string | null
first_name: string
@@ -949,6 +982,7 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
export interface UserFieldRefs {
readonly id: Prisma.FieldRef<"User", 'String'>
readonly created_at: Prisma.FieldRef<"User", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"User", 'DateTime'>
readonly mobile_number: Prisma.FieldRef<"User", 'String'>
readonly national_code: Prisma.FieldRef<"User", 'String'>
readonly first_name: Prisma.FieldRef<"User", 'String'>