Implement License Key API

This commit is contained in:
NeilClack
2026-02-19 13:00:08 -06:00
parent aa51b4a452
commit 664b6daa7f
11 changed files with 1683 additions and 10 deletions
@@ -393,7 +393,8 @@ export const ModelName = {
Verification: 'Verification',
Affirmation: 'Affirmation',
SolfeggioFrequency: 'SolfeggioFrequency',
AffirmationCategory: 'AffirmationCategory'
AffirmationCategory: 'AffirmationCategory',
LicenseKey: 'LicenseKey'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -409,7 +410,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
omit: GlobalOmitOptions
}
meta: {
modelProps: "user" | "profile" | "address" | "session" | "account" | "userRole" | "verification" | "affirmation" | "solfeggioFrequency" | "affirmationCategory"
modelProps: "user" | "profile" | "address" | "session" | "account" | "userRole" | "verification" | "affirmation" | "solfeggioFrequency" | "affirmationCategory" | "licenseKey"
txIsolationLevel: TransactionIsolationLevel
}
model: {
@@ -1153,6 +1154,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
}
}
}
LicenseKey: {
payload: Prisma.$LicenseKeyPayload<ExtArgs>
fields: Prisma.LicenseKeyFieldRefs
operations: {
findUnique: {
args: Prisma.LicenseKeyFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload> | null
}
findUniqueOrThrow: {
args: Prisma.LicenseKeyFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
findFirst: {
args: Prisma.LicenseKeyFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload> | null
}
findFirstOrThrow: {
args: Prisma.LicenseKeyFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
findMany: {
args: Prisma.LicenseKeyFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>[]
}
create: {
args: Prisma.LicenseKeyCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
createMany: {
args: Prisma.LicenseKeyCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.LicenseKeyCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>[]
}
delete: {
args: Prisma.LicenseKeyDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
update: {
args: Prisma.LicenseKeyUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
deleteMany: {
args: Prisma.LicenseKeyDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.LicenseKeyUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.LicenseKeyUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>[]
}
upsert: {
args: Prisma.LicenseKeyUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LicenseKeyPayload>
}
aggregate: {
args: Prisma.LicenseKeyAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateLicenseKey>
}
groupBy: {
args: Prisma.LicenseKeyGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.LicenseKeyGroupByOutputType>[]
}
count: {
args: Prisma.LicenseKeyCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.LicenseKeyCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
@@ -1312,6 +1387,17 @@ export const AffirmationCategoryScalarFieldEnum = {
export type AffirmationCategoryScalarFieldEnum = (typeof AffirmationCategoryScalarFieldEnum)[keyof typeof AffirmationCategoryScalarFieldEnum]
export const LicenseKeyScalarFieldEnum = {
id: 'id',
key: 'key',
active: 'active',
level: 'level',
userId: 'userId'
} as const
export type LicenseKeyScalarFieldEnum = (typeof LicenseKeyScalarFieldEnum)[keyof typeof LicenseKeyScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'
@@ -1509,6 +1595,7 @@ export type GlobalOmitConfig = {
affirmation?: Prisma.AffirmationOmit
solfeggioFrequency?: Prisma.SolfeggioFrequencyOmit
affirmationCategory?: Prisma.AffirmationCategoryOmit
licenseKey?: Prisma.LicenseKeyOmit
}
/* Types for Logging */