add schema for box and item
add mobile version for datatable
This commit is contained in:
@@ -80,12 +80,12 @@ export type PrismaVersion = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 7.3.0
|
||||
* Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735
|
||||
* Prisma Client JS version: 7.4.1
|
||||
* Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
|
||||
*/
|
||||
export const prismaVersion: PrismaVersion = {
|
||||
client: "7.3.0",
|
||||
engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735"
|
||||
client: "7.4.1",
|
||||
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -393,7 +393,9 @@ export const ModelName = {
|
||||
Invitation: 'Invitation',
|
||||
Setting: 'Setting',
|
||||
Audit: 'Audit',
|
||||
Notification: 'Notification'
|
||||
Notification: 'Notification',
|
||||
Box: 'Box',
|
||||
Item: 'Item'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -409,7 +411,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "session" | "account" | "verification" | "house" | "member" | "invitation" | "setting" | "audit" | "notification"
|
||||
modelProps: "user" | "session" | "account" | "verification" | "house" | "member" | "invitation" | "setting" | "audit" | "notification" | "box" | "item"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -1153,6 +1155,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Box: {
|
||||
payload: Prisma.$BoxPayload<ExtArgs>
|
||||
fields: Prisma.BoxFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.BoxFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.BoxFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.BoxFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.BoxFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.BoxFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.BoxCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.BoxCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.BoxCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.BoxDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.BoxUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.BoxDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.BoxUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.BoxUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.BoxUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$BoxPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.BoxAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateBox>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.BoxGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.BoxGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.BoxCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.BoxCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
Item: {
|
||||
payload: Prisma.$ItemPayload<ExtArgs>
|
||||
fields: Prisma.ItemFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.ItemFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.ItemFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.ItemFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.ItemFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.ItemFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.ItemCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.ItemCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.ItemCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.ItemDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.ItemUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.ItemDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.ItemUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.ItemUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.ItemUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$ItemPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.ItemAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateItem>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.ItemGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.ItemGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.ItemCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.ItemCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -1336,6 +1486,43 @@ export const NotificationScalarFieldEnum = {
|
||||
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
||||
|
||||
|
||||
export const BoxScalarFieldEnum = {
|
||||
id: 'id',
|
||||
houseId: 'houseId',
|
||||
icon: 'icon',
|
||||
color: 'color',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
tags: 'tags',
|
||||
createrId: 'createrId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
isPrivate: 'isPrivate'
|
||||
} as const
|
||||
|
||||
export type BoxScalarFieldEnum = (typeof BoxScalarFieldEnum)[keyof typeof BoxScalarFieldEnum]
|
||||
|
||||
|
||||
export const ItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
createrId: 'createrId',
|
||||
boxId: 'boxId',
|
||||
image: 'image',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
price: 'price',
|
||||
tags: 'tags',
|
||||
quantity: 'quantity',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type ItemScalarFieldEnum = (typeof ItemScalarFieldEnum)[keyof typeof ItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -1414,6 +1601,20 @@ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'In
|
||||
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float'
|
||||
*/
|
||||
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float[]'
|
||||
*/
|
||||
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
|
||||
|
||||
|
||||
/**
|
||||
* Batch Payload for updateMany & deleteMany & createMany
|
||||
*/
|
||||
@@ -1519,6 +1720,8 @@ export type GlobalOmitConfig = {
|
||||
setting?: Prisma.SettingOmit
|
||||
audit?: Prisma.AuditOmit
|
||||
notification?: Prisma.NotificationOmit
|
||||
box?: Prisma.BoxOmit
|
||||
item?: Prisma.ItemOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
Reference in New Issue
Block a user