-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.ts
38 lines (35 loc) · 784 Bytes
/
db.ts
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
35
36
37
38
import { factory, nullable, primaryKey } from '@mswjs/data';
import { uid } from '@/utils/uid';
const models = {
user: {
id: primaryKey(uid),
createdAt: Date.now,
email: String,
password: String,
organizationId: String,
},
organization: {
id: primaryKey(uid),
createdAt: Date.now,
adminId: String,
name: String,
email: String,
phone: String,
info: String,
profileImage: nullable(String),
location: String,
},
job: {
id: primaryKey(uid),
createdAt: Date.now,
organizationId: String,
position: String,
info: nullable(String),
location: String,
department: String,
salaryRange: String,
employmentType: String,
experienceLevel: String,
},
};
export const db = factory(models);