-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.prisma
More file actions
34 lines (28 loc) · 780 Bytes
/
schema.prisma
File metadata and controls
34 lines (28 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
generator client {
provider = "prisma-client-js"
previewFeatures = ["reactNative"]
}
datasource db {
provider = "sqlite"
url = "file:app.db"
}
model Aluno {
id_aluno String @id @default(uuid())
nm_aluno String
email_aluno String @unique
data_nascimento DateTime
peso Float
altura Float
genero_aluno String
deficiencias_aluno String?
id_personal String
treinos Treino[] @relation("AlunoTreinos")
@@map("aluno")
}
model Treino {
id_treino String @id @default(uuid())
treino_gerado String
id_aluno String
id_personal String
aluno Aluno @relation(fields: [id_aluno], references: [id_aluno], name: "AlunoTreinos")
}