1
- // This is your Prisma schema file,
2
- // learn more about it in the docs: https://pris.ly/d/prisma-schema
3
-
4
- // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
5
- // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
6
-
7
1
generator client {
8
- provider = " prisma-client-js "
9
- previewFeatures = [" driverAdapters " ]
2
+ provider = " prisma-client-js "
3
+ previewFeatures = [" driverAdapters " ]
10
4
}
11
5
12
6
datasource db {
@@ -20,15 +14,13 @@ model User {
20
14
email String @unique
21
15
emailVerified DateTime ?
22
16
image String ?
17
+ createdAt DateTime @default (now () )
18
+ updatedAt DateTime @updatedAt
23
19
accounts Account []
24
- sessions Session []
25
- // Optional for WebAuthn support
26
20
Authenticator Authenticator []
27
-
28
- createdAt DateTime @default (now () )
29
- updatedAt DateTime @updatedAt
21
+ sessions Session []
30
22
}
31
-
23
+
32
24
model Account {
33
25
userId String
34
26
type String
@@ -41,34 +33,30 @@ model Account {
41
33
scope String ?
42
34
id_token String ?
43
35
session_state String ?
44
-
45
- createdAt DateTime @default (now () )
46
- updatedAt DateTime @updatedAt
47
-
48
- user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
49
-
36
+ createdAt DateTime @default (now () )
37
+ updatedAt DateTime @updatedAt
38
+ user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
39
+
50
40
@@id ([provider , providerAccountId ] )
51
41
}
52
-
42
+
53
43
model Session {
54
44
sessionToken String @unique
55
45
userId String
56
46
expires DateTime
47
+ createdAt DateTime @default (now () )
48
+ updatedAt DateTime @updatedAt
57
49
user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
58
-
59
- createdAt DateTime @default (now () )
60
- updatedAt DateTime @updatedAt
61
50
}
62
-
51
+
63
52
model VerificationToken {
64
53
identifier String
65
54
token String
66
55
expires DateTime
67
-
56
+
68
57
@@id ([identifier , token ] )
69
58
}
70
-
71
- // Optional for WebAuthn support
59
+
72
60
model Authenticator {
73
61
credentialID String @unique
74
62
userId String
@@ -78,8 +66,37 @@ model Authenticator {
78
66
credentialDeviceType String
79
67
credentialBackedUp Boolean
80
68
transports String ?
81
-
82
- user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
83
-
69
+ user User @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
70
+
84
71
@@id ([userId , credentialID ] )
85
- }
72
+ }
73
+
74
+ model data_version {
75
+ table String @id
76
+ version String
77
+ }
78
+
79
+ model military_occupation {
80
+ id Int @id @default (autoincrement () )
81
+ branch branch
82
+ code String @db.VarChar (10 )
83
+ title String @db.VarChar
84
+ description String @db.VarChar
85
+ personnel_category personnelcategory
86
+
87
+ @@unique ([branch , code , personnel_category ] )
88
+ }
89
+
90
+ enum branch {
91
+ MARINE_CORPS
92
+ NAVY
93
+ COAST_GUARD
94
+ ARMY
95
+ AIR_FORCE
96
+ }
97
+
98
+ enum personnelcategory {
99
+ ENLISTED
100
+ OFFICER
101
+ WARRANT_OFFICER
102
+ }
0 commit comments