- added settings page and function
- add Role Ring for avatar and display role for user nav
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -80,12 +80,12 @@ export type PrismaVersion = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 7.1.0
|
||||
* Query Engine version: ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba
|
||||
* Prisma Client JS version: 7.2.0
|
||||
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
||||
*/
|
||||
export const prismaVersion: PrismaVersion = {
|
||||
client: "7.1.0",
|
||||
engine: "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba"
|
||||
client: "7.2.0",
|
||||
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -390,7 +390,8 @@ export const ModelName = {
|
||||
Verification: 'Verification',
|
||||
Organization: 'Organization',
|
||||
Member: 'Member',
|
||||
Invitation: 'Invitation'
|
||||
Invitation: 'Invitation',
|
||||
Setting: 'Setting'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -406,7 +407,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "session" | "account" | "verification" | "organization" | "member" | "invitation"
|
||||
modelProps: "user" | "session" | "account" | "verification" | "organization" | "member" | "invitation" | "setting"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -928,6 +929,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Setting: {
|
||||
payload: Prisma.$SettingPayload<ExtArgs>
|
||||
fields: Prisma.SettingFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SettingFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SettingFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SettingFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SettingFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SettingFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SettingCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SettingCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.SettingCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SettingDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SettingUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SettingDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SettingUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.SettingUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SettingUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SettingPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SettingAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSetting>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SettingGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SettingGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SettingCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SettingCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -1069,6 +1144,19 @@ export const InvitationScalarFieldEnum = {
|
||||
export type InvitationScalarFieldEnum = (typeof InvitationScalarFieldEnum)[keyof typeof InvitationScalarFieldEnum]
|
||||
|
||||
|
||||
export const SettingScalarFieldEnum = {
|
||||
id: 'id',
|
||||
key: 'key',
|
||||
value: 'value',
|
||||
description: 'description',
|
||||
relation: 'relation',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type SettingScalarFieldEnum = (typeof SettingScalarFieldEnum)[keyof typeof SettingScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -1249,6 +1337,7 @@ export type GlobalOmitConfig = {
|
||||
organization?: Prisma.OrganizationOmit
|
||||
member?: Prisma.MemberOmit
|
||||
invitation?: Prisma.InvitationOmit
|
||||
setting?: Prisma.SettingOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -57,7 +57,8 @@ export const ModelName = {
|
||||
Verification: 'Verification',
|
||||
Organization: 'Organization',
|
||||
Member: 'Member',
|
||||
Invitation: 'Invitation'
|
||||
Invitation: 'Invitation',
|
||||
Setting: 'Setting'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -178,6 +179,19 @@ export const InvitationScalarFieldEnum = {
|
||||
export type InvitationScalarFieldEnum = (typeof InvitationScalarFieldEnum)[keyof typeof InvitationScalarFieldEnum]
|
||||
|
||||
|
||||
export const SettingScalarFieldEnum = {
|
||||
id: 'id',
|
||||
key: 'key',
|
||||
value: 'value',
|
||||
description: 'description',
|
||||
relation: 'relation',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type SettingScalarFieldEnum = (typeof SettingScalarFieldEnum)[keyof typeof SettingScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
Reference in New Issue
Block a user