/
types.go
55 lines (45 loc) · 854 Bytes
/
types.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
package tenordb
type AbsNote struct {
Id int `db:id`
Name string `db:name`
}
type RelNote struct {
Id int `db:id`
Name string `db:name`
}
type Chord struct {
Id int `db:id`
Cp_id int `db:cp_id`
Root_an_id int `db:root_an_id`
}
type Scale struct {
Id int `db:id`
Sp_id int `db:sp_id`
Root_an_id int `db:root_an_id`
}
type ChordPattern struct {
Id int `db:id`
Name string `db:name`
}
type ScalePattern struct {
Id int `db:id`
Name string `db:name`
}
type ChordNote struct {
An_id int `db:an_id`
Rn_id int `db:rn_id`
C_id int `db:c_id`
}
type ScaleNote struct {
An_id int `db:an_id`
Rn_id int `db:rn_id`
S_id int `db:s_id`
}
type ChordPatternNote struct {
Cp_id int `db:cp_id`
Rn_id int `db:rn_id`
}
type ScalePatternNote struct {
Sp_id int `db:sp_id`
Rn_id int `db:rn_id`
}