Notification UI and house invitation
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -392,7 +392,8 @@ export const ModelName = {
|
||||
Member: 'Member',
|
||||
Invitation: 'Invitation',
|
||||
Setting: 'Setting',
|
||||
Audit: 'Audit'
|
||||
Audit: 'Audit',
|
||||
Notification: 'Notification'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -408,7 +409,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "session" | "account" | "verification" | "organization" | "member" | "invitation" | "setting" | "audit"
|
||||
modelProps: "user" | "session" | "account" | "verification" | "organization" | "member" | "invitation" | "setting" | "audit" | "notification"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -1078,6 +1079,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Notification: {
|
||||
payload: Prisma.$NotificationPayload<ExtArgs>
|
||||
fields: Prisma.NotificationFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.NotificationFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.NotificationFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.NotificationFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.NotificationFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.NotificationFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.NotificationCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.NotificationCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.NotificationCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.NotificationDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.NotificationUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.NotificationDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.NotificationUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.NotificationUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.NotificationUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.NotificationAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateNotification>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.NotificationGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.NotificationGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.NotificationCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.NotificationCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -1246,6 +1321,21 @@ export const AuditScalarFieldEnum = {
|
||||
export type AuditScalarFieldEnum = (typeof AuditScalarFieldEnum)[keyof typeof AuditScalarFieldEnum]
|
||||
|
||||
|
||||
export const NotificationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
title: 'title',
|
||||
message: 'message',
|
||||
type: 'type',
|
||||
link: 'link',
|
||||
metadata: 'metadata',
|
||||
createdAt: 'createdAt',
|
||||
readAt: 'readAt'
|
||||
} as const
|
||||
|
||||
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -1428,6 +1518,7 @@ export type GlobalOmitConfig = {
|
||||
invitation?: Prisma.InvitationOmit
|
||||
setting?: Prisma.SettingOmit
|
||||
audit?: Prisma.AuditOmit
|
||||
notification?: Prisma.NotificationOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -59,7 +59,8 @@ export const ModelName = {
|
||||
Member: 'Member',
|
||||
Invitation: 'Invitation',
|
||||
Setting: 'Setting',
|
||||
Audit: 'Audit'
|
||||
Audit: 'Audit',
|
||||
Notification: 'Notification'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -207,6 +208,21 @@ export const AuditScalarFieldEnum = {
|
||||
export type AuditScalarFieldEnum = (typeof AuditScalarFieldEnum)[keyof typeof AuditScalarFieldEnum]
|
||||
|
||||
|
||||
export const NotificationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
title: 'title',
|
||||
message: 'message',
|
||||
type: 'type',
|
||||
link: 'link',
|
||||
metadata: 'metadata',
|
||||
createdAt: 'createdAt',
|
||||
readAt: 'readAt'
|
||||
} as const
|
||||
|
||||
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
Reference in New Issue
Block a user