Skip to content

Commit

Permalink
chore: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Jun 25, 2024
1 parent 39aaee7 commit d223e35
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions apps/studio/prisma/generated/generatedTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ColumnType } from "kysely"
import type { ColumnType, GeneratedAlways } from "kysely"
export type Generated<T> =
T extends ColumnType<infer S, infer I, infer U>
? ColumnType<S, I | undefined, U>
Expand All @@ -8,43 +8,43 @@ export type Timestamp = ColumnType<Date, Date | string, Date | string>
import type { RoleType } from "./generatedEnums"

export type Blob = {
id: string
id: GeneratedAlways<number>
content: unknown
}
export type Footer = {
id: string
siteId: string
id: GeneratedAlways<number>
siteId: number
content: unknown
}
export type Navbar = {
id: string
siteId: string
id: GeneratedAlways<number>
siteId: number
content: unknown
}
export type Permission = {
id: string
resourceId: string
userId: string
id: GeneratedAlways<number>
resourceId: number
userId: number
role: RoleType
}
export type Resource = {
id: string
id: GeneratedAlways<number>
name: string
siteId: string
parentId: string | null
blobId: string | null
siteId: number
parentId: number | null
blobId: number | null
}
export type Site = {
id: string
id: GeneratedAlways<number>
name: string
config: unknown
}
export type SiteMember = {
userId: string
siteId: string
userId: number
siteId: number
}
export type User = {
id: string
id: GeneratedAlways<number>
name: string
email: string
phone: string
Expand Down

0 comments on commit d223e35

Please sign in to comment.