-
Notifications
You must be signed in to change notification settings - Fork 2
/
defs.js
68 lines (53 loc) · 1.6 KB
/
defs.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// This is a file with type definitions
/**
* @module types
*/
// tattoo type
// prisma model:
// model Tattoo {
// id String @id @default(auto()) @map("_id") @db.ObjectId
// createdAt DateTime @default(now())
// updatedAt DateTime @updatedAt
// title String
// description String
// imageSrc String
// content String?
// // numLikes Int @default(0)
// // RELATIONS
// artistProfileId String? @db.ObjectId
// artistProfile ArtistProfile? @relation(fields: [artistProfileId], references: [id])
// saves SavedTattoo[]
// likes LikedTattoo[]
// tags TaggedTattoo[]
// styleId String? @db.ObjectId
// style Style? @relation(fields: [styleId], references: [id])
// bodyPartId String? @db.ObjectId
// bodyPart BodyPart? @relation(fields: [bodyPartId], references: [id])
// boards BoardTattoo[]
// }
// ChatGPT Copilot: create the type definition of the above model using JSDocs
/**
* @typedef {Object} TattooType
* @property {string} id
* @property {string} createdAt
* @property {string} updatedAt
* @property {string} title
* @property {string} description
* @property {string} imageSrc
* @property {string} content
* @property {string} artistProfileId
* @property {string} artistProfile
* @property {string} saves
* @property {string} likes
* @property {string} tags
* @property {string} styleId
* @property {string} style
* @property {string} bodyPartId
* @property {string} bodyPart
* @property {string} boards
*/
/**
* @typedef {Object} Foo
* @prop {String} name
*/
export { }