Skip to content

Commit

Permalink
nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Type-32 <[email protected]>
  • Loading branch information
Type-32 committed Sep 10, 2024
1 parent d2e0b19 commit 5b98099
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Empty file.
Empty file added app/composables/useGalleries.ts
Empty file.
26 changes: 24 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,26 @@ model User {
tokens Token[]
}

model Category {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
name String
galleries Gallery[]
}

model Gallery {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
name String
medias Media[]
Category Category? @relation(fields: [categoryId], references: [id])
categoryId Int?
}

model Media {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
Expand All @@ -63,8 +83,10 @@ model Media {
fileName String
url String
directory String
pseudoDirectory String @default("/")
isFolder Boolean @default(false)
pseudoDirectory String @default("/")
isFolder Boolean @default(false)
Gallery Gallery? @relation(fields: [galleryId], references: [id])
galleryId Int?
}

model Token {
Expand Down

0 comments on commit 5b98099

Please sign in to comment.