-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
112 lines (93 loc) · 3.35 KB
/
structs.go
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/* structs.go */
// structs.go contains structs to be used in an ER schema. Database source data must be a json.
package structfmt
// ER Classes
// ER object: Go struct for a single Json Object within the "rosaryBead" Json element Object array
type RosaryBead struct {
RosaryBeadID int `json:"rosaryBeadID"`
BeadIndex int `json:"beadIndex"`
DecadeIndex int `json:"decadeIndex"`
MysteryIndex int `json:"mysteryIndex"`
PrayerIndex int `json:"prayerIndex"`
ScriptureIndex int `json:"scriptureIndex"`
MessageIndex int `json:"messageIndex"`
LoopBody int `json:"loopBody"`
SmallbeadPercent int `json:"smallbeadPercent"`
MysteryPercent int `json:"mysteryPercent"`
}
// ER object: Go struct for a single Json Object within the "bead" Json element Object array
type Bead struct {
BeadID int `json:"beadID"`
BeadType string `json:"beadType"`
}
type Decade struct {
DecadeID int `json:"beadID"`
MysteryIndex int `json:"mysteryIndex"`
DecadeNo int `json:"decadeNo"`
DecadeName string `json:"decadeName"`
DecadeInfo string `json:"decadeInfo"`
InfoRefference string `json:"infoRefference"`
}
// ER object: Go struct for a single Json Object within the "mystery" Json element Object array
type Mystery struct {
MysteryID int `json:"mysteryID"`
MysteryNo int `json:"mysteryNo"`
MysteryName string `json:"mysteryName"`
}
// ER object: Go struct for a single Json Object within the "book" Json element Object array
type Book struct {
BookID int `json:"bookID"`
BookName string `json:"bookName"`
}
// ER object: Go struct for a single Json Object within the "scripture" Json element Object array
type Scripture struct {
ScriptureID int `json:"scriptureID"`
BookIndex int `json:"bookIndex"`
ChapterIndex int `json:"chapterIndex"`
VerseIndex int `json:"verseIndex"`
ScriptureText string `json:"scriptureText"`
}
// ER object: ER object: Go struct for a single Json Object within the "message" Json element Object array
type Message struct {
MessageID int `json:"messageID"`
MesageText string `json:"mesageText"`
}
// ER object: Go struct for a single Json Object within the "prayer" Json element Object array
type Prayer struct {
PrayerID int `json:"prayerID"`
PrayerName string `json:"prayerName"`
PrayerText string `json:"prayerText"`
}
// ER DB
// ER class: Go struct for the "rosaryBead" Json element Object array
type RosaryBeads struct {
RosaryBeads []RosaryBead `json:"rosaryBead"`
}
// ER class: Go struct for the "beads" Json element Object array
type Beads struct {
Beads []Bead `json:"bead"`
}
// ER class: Go struct for the "decades" Json element Object array
type Decades struct {
Decades []Decade `json:"decade"`
}
// ER class: Go struct for the "mysteries" Json element Object array
type Mysterys struct {
Mysterys []Mystery `json:"mystery"`
}
// ER class: Go struct for the "books" Json element Object array
type Books struct {
Books []Book `json:"book"`
}
// ER class: Go struct for the "scriptures" Json element Object array
type Scriptures struct {
Scriptures []Scripture `json:"scripture"`
}
// ER class: Go struct for the "message" Json element Object array
type Messages struct {
Messages []Message `json:"message"`
}
// ER class: Go struct for the "prayers" Json element Object array
type Prayers struct {
Prayers []Prayer `json:"prayer"`
}