added tons of features

This commit is contained in:
2025-02-05 08:01:14 +02:00
parent 4ae0d8c545
commit 8138da6b1d
195 changed files with 12619 additions and 415 deletions

13
types/auth.ts Normal file
View File

@@ -0,0 +1,13 @@
import {Account, User, UserRole} from '@prisma/client'
export interface SessionUser {
id: number
name: string
email: string
image: string
username: string
isOauth: boolean
role: UserRole
provider: string
profileId: number
}

9
types/index.ts Normal file
View File

@@ -0,0 +1,9 @@
import {z} from 'zod'
import {ProductInputSchema} from '@/lib/validator'
export type IProductInput = z.infer<typeof ProductInputSchema>
export type ResourceMessages =
| {error: string; success?: undefined}
| {success: string; error?: undefined}