Skip to content

Commit

Permalink
feat: reorder tables
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussinSa committed Feb 9, 2024
1 parent a243163 commit 1d6656d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ datasource db {

// Do not modify anything above this line unless you know what you are doing.

model Meeting {
id String @id @unique @default(uuid())
title String
description String?
date DateTime
location String?
Invitees User[]
host_id String
group Group? @relation(fields: [groupId], references: [id])
from_time DateTime
to_time DateTime
groupId String?
MeetingUserAvailability MeetingUserAvailability[]
}

model User {
id String @id @unique @default(uuid())
username String @unique
Expand Down Expand Up @@ -60,6 +45,21 @@ model Session {
last_accessed Int?
}

model Meeting {
id String @id @unique @default(uuid())
title String
description String?
date DateTime
location String?
Invitees User[]
host_id String
group Group? @relation(fields: [groupId], references: [id])
from_time DateTime
to_time DateTime
groupId String?
MeetingUserAvailability MeetingUserAvailability[]
}

model Group {
id String @id @unique @default(uuid())
name String
Expand Down

0 comments on commit 1d6656d

Please sign in to comment.