refactor user accounts structure

This commit is contained in:
2026-03-16 00:33:40 +03:30
parent d2215b9f04
commit 0ad6a3200e
118 changed files with 18774 additions and 8764 deletions
+26 -270
View File
@@ -50,7 +50,6 @@ export type GoodMinAggregateOutputType = {
deleted_at: Date | null
complex_id: string | null
category_id: string | null
guild_id: string | null
}
export type GoodMaxAggregateOutputType = {
@@ -69,7 +68,6 @@ export type GoodMaxAggregateOutputType = {
deleted_at: Date | null
complex_id: string | null
category_id: string | null
guild_id: string | null
}
export type GoodCountAggregateOutputType = {
@@ -88,7 +86,6 @@ export type GoodCountAggregateOutputType = {
deleted_at: number
complex_id: number
category_id: number
guild_id: number
_all: number
}
@@ -117,7 +114,6 @@ export type GoodMinAggregateInputType = {
deleted_at?: true
complex_id?: true
category_id?: true
guild_id?: true
}
export type GoodMaxAggregateInputType = {
@@ -136,7 +132,6 @@ export type GoodMaxAggregateInputType = {
deleted_at?: true
complex_id?: true
category_id?: true
guild_id?: true
}
export type GoodCountAggregateInputType = {
@@ -155,7 +150,6 @@ export type GoodCountAggregateInputType = {
deleted_at?: true
complex_id?: true
category_id?: true
guild_id?: true
_all?: true
}
@@ -261,7 +255,6 @@ export type GoodGroupByOutputType = {
deleted_at: Date | null
complex_id: string | null
category_id: string | null
guild_id: string | null
_count: GoodCountAggregateOutputType | null
_avg: GoodAvgAggregateOutputType | null
_sum: GoodSumAggregateOutputType | null
@@ -303,10 +296,8 @@ export type GoodWhereInput = {
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
}
@@ -326,10 +317,8 @@ export type GoodOrderByWithRelationInput = {
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
category?: Prisma.GoodCategoryOrderByWithRelationInput
complex?: Prisma.ComplexOrderByWithRelationInput
guild?: Prisma.GuildOrderByWithRelationInput
sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
_relevance?: Prisma.GoodOrderByRelevanceInput
}
@@ -353,10 +342,8 @@ export type GoodWhereUniqueInput = Prisma.AtLeast<{
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
}, "id" | "local_sku" | "barcode">
@@ -376,7 +363,6 @@ export type GoodOrderByWithAggregationInput = {
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.GoodCountOrderByAggregateInput
_avg?: Prisma.GoodAvgOrderByAggregateInput
_max?: Prisma.GoodMaxOrderByAggregateInput
@@ -403,7 +389,6 @@ export type GoodScalarWhereWithAggregatesInput = {
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Good"> | Date | string | null
complex_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
category_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
guild_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
}
export type GoodCreateInput = {
@@ -422,7 +407,6 @@ export type GoodCreateInput = {
deleted_at?: Date | string | null
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
}
@@ -442,7 +426,6 @@ export type GoodUncheckedCreateInput = {
deleted_at?: Date | string | null
complex_id?: string | null
category_id?: string | null
guild_id?: string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
}
@@ -462,7 +445,6 @@ export type GoodUpdateInput = {
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
}
@@ -482,7 +464,6 @@ export type GoodUncheckedUpdateInput = {
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
}
@@ -502,7 +483,6 @@ export type GoodCreateManyInput = {
deleted_at?: Date | string | null
complex_id?: string | null
category_id?: string | null
guild_id?: string | null
}
export type GoodUpdateManyMutationInput = {
@@ -537,7 +517,6 @@ export type GoodUncheckedUpdateManyInput = {
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type GoodListRelationFilter = {
@@ -572,7 +551,6 @@ export type GoodCountOrderByAggregateInput = {
deleted_at?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
category_id?: Prisma.SortOrder
guild_id?: Prisma.SortOrder
}
export type GoodAvgOrderByAggregateInput = {
@@ -595,7 +573,6 @@ export type GoodMaxOrderByAggregateInput = {
deleted_at?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
category_id?: Prisma.SortOrder
guild_id?: Prisma.SortOrder
}
export type GoodMinOrderByAggregateInput = {
@@ -614,7 +591,6 @@ export type GoodMinOrderByAggregateInput = {
deleted_at?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
category_id?: Prisma.SortOrder
guild_id?: Prisma.SortOrder
}
export type GoodSumOrderByAggregateInput = {
@@ -626,48 +602,6 @@ export type GoodNullableScalarRelationFilter = {
isNot?: Prisma.GoodWhereInput | null
}
export type GoodCreateNestedManyWithoutGuildInput = {
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
}
export type GoodUncheckedCreateNestedManyWithoutGuildInput = {
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
}
export type GoodUpdateManyWithoutGuildNestedInput = {
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
}
export type GoodUncheckedUpdateManyWithoutGuildNestedInput = {
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
}
export type GoodCreateNestedManyWithoutComplexInput = {
create?: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput> | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[]
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[]
@@ -710,6 +644,10 @@ export type GoodUncheckedUpdateManyWithoutComplexNestedInput = {
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type EnumUnitTypeFieldUpdateOperationsInput = {
set?: $Enums.UnitType
}
@@ -784,92 +722,6 @@ export type GoodUpdateOneWithoutSales_invoice_itemsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput, Prisma.GoodUpdateWithoutSales_invoice_itemsInput>, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
}
export type GoodCreateWithoutGuildInput = {
id?: string
name: string
is_default_guild_good?: boolean
sku: string
unit_type: $Enums.UnitType
pricing_model: $Enums.GoodPricingModel
description?: string | null
local_sku?: string | null
barcode?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
}
export type GoodUncheckedCreateWithoutGuildInput = {
id?: string
name: string
is_default_guild_good?: boolean
sku: string
unit_type: $Enums.UnitType
pricing_model: $Enums.GoodPricingModel
description?: string | null
local_sku?: string | null
barcode?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
complex_id?: string | null
category_id?: string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
}
export type GoodCreateOrConnectWithoutGuildInput = {
where: Prisma.GoodWhereUniqueInput
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
}
export type GoodCreateManyGuildInputEnvelope = {
data: Prisma.GoodCreateManyGuildInput | Prisma.GoodCreateManyGuildInput[]
skipDuplicates?: boolean
}
export type GoodUpsertWithWhereUniqueWithoutGuildInput = {
where: Prisma.GoodWhereUniqueInput
update: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
}
export type GoodUpdateWithWhereUniqueWithoutGuildInput = {
where: Prisma.GoodWhereUniqueInput
data: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
}
export type GoodUpdateManyWithWhereWithoutGuildInput = {
where: Prisma.GoodScalarWhereInput
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutGuildInput>
}
export type GoodScalarWhereInput = {
AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
OR?: Prisma.GoodScalarWhereInput[]
NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
id?: Prisma.StringFilter<"Good"> | string
name?: Prisma.StringFilter<"Good"> | string
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
sku?: Prisma.StringFilter<"Good"> | string
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
description?: Prisma.StringNullableFilter<"Good"> | string | null
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
}
export type GoodCreateWithoutComplexInput = {
id?: string
name: string
@@ -885,7 +737,6 @@ export type GoodCreateWithoutComplexInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
}
@@ -904,7 +755,6 @@ export type GoodUncheckedCreateWithoutComplexInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
category_id?: string | null
guild_id?: string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
}
@@ -934,6 +784,27 @@ export type GoodUpdateManyWithWhereWithoutComplexInput = {
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutComplexInput>
}
export type GoodScalarWhereInput = {
AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
OR?: Prisma.GoodScalarWhereInput[]
NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
id?: Prisma.StringFilter<"Good"> | string
name?: Prisma.StringFilter<"Good"> | string
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
sku?: Prisma.StringFilter<"Good"> | string
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
description?: Prisma.StringNullableFilter<"Good"> | string | null
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
}
export type GoodCreateWithoutCategoryInput = {
id?: string
name: string
@@ -949,7 +820,6 @@ export type GoodCreateWithoutCategoryInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
}
@@ -968,7 +838,6 @@ export type GoodUncheckedCreateWithoutCategoryInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
complex_id?: string | null
guild_id?: string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
}
@@ -1014,7 +883,6 @@ export type GoodCreateWithoutSales_invoice_itemsInput = {
deleted_at?: Date | string | null
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
}
export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
@@ -1033,7 +901,6 @@ export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
deleted_at?: Date | string | null
complex_id?: string | null
category_id?: string | null
guild_id?: string | null
}
export type GoodCreateOrConnectWithoutSales_invoice_itemsInput = {
@@ -1068,7 +935,6 @@ export type GoodUpdateWithoutSales_invoice_itemsInput = {
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
}
export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
@@ -1087,81 +953,6 @@ export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type GoodCreateManyGuildInput = {
id?: string
name: string
is_default_guild_good?: boolean
sku: string
unit_type: $Enums.UnitType
pricing_model: $Enums.GoodPricingModel
description?: string | null
local_sku?: string | null
barcode?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
complex_id?: string | null
category_id?: string | null
}
export type GoodUpdateWithoutGuildInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
sku?: Prisma.StringFieldUpdateOperationsInput | string
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
}
export type GoodUncheckedUpdateWithoutGuildInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
sku?: Prisma.StringFieldUpdateOperationsInput | string
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
}
export type GoodUncheckedUpdateManyWithoutGuildInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
sku?: Prisma.StringFieldUpdateOperationsInput | string
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type GoodCreateManyComplexInput = {
@@ -1179,7 +970,6 @@ export type GoodCreateManyComplexInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
category_id?: string | null
guild_id?: string | null
}
export type GoodUpdateWithoutComplexInput = {
@@ -1197,7 +987,6 @@ export type GoodUpdateWithoutComplexInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
}
@@ -1216,7 +1005,6 @@ export type GoodUncheckedUpdateWithoutComplexInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
}
@@ -1235,7 +1023,6 @@ export type GoodUncheckedUpdateManyWithoutComplexInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type GoodCreateManyCategoryInput = {
@@ -1253,7 +1040,6 @@ export type GoodCreateManyCategoryInput = {
updated_at?: Date | string
deleted_at?: Date | string | null
complex_id?: string | null
guild_id?: string | null
}
export type GoodUpdateWithoutCategoryInput = {
@@ -1271,7 +1057,6 @@ export type GoodUpdateWithoutCategoryInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
}
@@ -1290,7 +1075,6 @@ export type GoodUncheckedUpdateWithoutCategoryInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
}
@@ -1309,7 +1093,6 @@ export type GoodUncheckedUpdateManyWithoutCategoryInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -1359,10 +1142,8 @@ export type GoodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
deleted_at?: boolean
complex_id?: boolean
category_id?: boolean
guild_id?: boolean
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["good"]>
@@ -1385,14 +1166,12 @@ export type GoodSelectScalar = {
deleted_at?: boolean
complex_id?: boolean
category_id?: boolean
guild_id?: boolean
}
export type GoodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default_guild_good" | "sku" | "unit_type" | "pricing_model" | "description" | "local_sku" | "barcode" | "base_sale_price" | "created_at" | "updated_at" | "deleted_at" | "complex_id" | "category_id" | "guild_id", ExtArgs["result"]["good"]>
export type GoodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default_guild_good" | "sku" | "unit_type" | "pricing_model" | "description" | "local_sku" | "barcode" | "base_sale_price" | "created_at" | "updated_at" | "deleted_at" | "complex_id" | "category_id", ExtArgs["result"]["good"]>
export type GoodInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -1402,7 +1181,6 @@ export type $GoodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
objects: {
category: Prisma.$GoodCategoryPayload<ExtArgs> | null
complex: Prisma.$ComplexPayload<ExtArgs> | null
guild: Prisma.$GuildPayload<ExtArgs> | null
sales_invoice_items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
@@ -1421,7 +1199,6 @@ export type $GoodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
deleted_at: Date | null
complex_id: string | null
category_id: string | null
guild_id: string | null
}, ExtArgs["result"]["good"]>
composites: {}
}
@@ -1764,7 +1541,6 @@ export interface Prisma__GoodClient<T, Null = never, ExtArgs extends runtime.Typ
readonly [Symbol.toStringTag]: "PrismaPromise"
category<T extends Prisma.Good$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$categoryArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
complex<T extends Prisma.Good$complexArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$complexArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
guild<T extends Prisma.Good$guildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$guildArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
sales_invoice_items<T extends Prisma.Good$sales_invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$sales_invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -1810,7 +1586,6 @@ export interface GoodFieldRefs {
readonly deleted_at: Prisma.FieldRef<"Good", 'DateTime'>
readonly complex_id: Prisma.FieldRef<"Good", 'String'>
readonly category_id: Prisma.FieldRef<"Good", 'String'>
readonly guild_id: Prisma.FieldRef<"Good", 'String'>
}
@@ -2191,25 +1966,6 @@ export type Good$complexArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
where?: Prisma.ComplexWhereInput
}
/**
* Good.guild
*/
export type Good$guildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Guild
*/
select?: Prisma.GuildSelect<ExtArgs> | null
/**
* Omit specific fields from the Guild
*/
omit?: Prisma.GuildOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GuildInclude<ExtArgs> | null
where?: Prisma.GuildWhereInput
}
/**
* Good.sales_invoice_items
*/