-
Notifications
You must be signed in to change notification settings - Fork 3
/
track.js
107 lines (107 loc) · 1.83 KB
/
track.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
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
/*
Evolutility Model for Music Track
https://github.com/evoluteur/evolutility-models
(c) 2022 Olivier Giulieri
*/
module.exports = {
id: "track",
oid: 9,
active: true,
position: 30,
world: "music",
icon: "music.png",
title: "Tracks",
table: "music_track",
name: "track",
namePlural: "tracks",
titleField: "name",
noStats: true,
fields: [
{
id: "name",
type: "text",
label: "Name",
column: "name",
required: true,
height: 3,
width: 100,
inMany: true,
inSearch: true,
},
{
id: "album",
type: "lov",
label: "Album",
column: "album_id",
object: "album",
height: 1,
width: 100,
inMany: true,
lovTable: "music_album",
lovColumn: "title",
},
{
id: "length",
type: "text",
label: "Length",
column: "length",
width: 38,
inMany: true,
},
{
id: "genre",
type: "lov",
label: "Genre",
column: "genre_id",
width: 62,
inMany: true,
lovTable: "music_genre",
list: [
{
id: 1,
text: "Blues",
},
{
id: 2,
text: "Classical",
},
{
id: 3,
text: "Country",
},
{
id: 4,
text: "Electronic",
},
{
id: 5,
text: "Folk",
},
{
id: 6,
text: "Jazz",
},
{
id: 7,
text: "New age",
},
{
id: 8,
text: "Reggae",
},
{
id: 9,
text: "Soul",
},
],
},
{
id: "description",
column: "description",
type: "textmultiline",
label: "Description",
height: 3,
inSearch: true,
},
],
};