-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdraft.yaml
39 lines (37 loc) · 1005 Bytes
/
draft.yaml
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
models:
Playlist:
name: string
uuid: uuid
url: string
status: enum:pending,processing,completed,failed default:pending
prefix: string nullable
channels: unsignedInteger default:0
synced: datetime nullable
errors: longText nullable
user_id: id foreign:users
relationships:
belongsTo: User
hasMany: Channel, Group
Group:
name: string
user_id: id foreign:users
playlist_id: id foreign:playlists
relationships:
belongsTo: User, Playlist
hasMany: Channel
Channel:
name: string
enabled: boolean default:false
channel: unsignedInteger nullable
shift: unsignedInteger default:0
url: string nullable
logo: string nullable
group: string nullable
stream_id: string nullable
lang: string nullable
country: string nullable
user_id: id foreign:users
playlist_id: id foreign:playlists
group_id: id foreign:groups nullable
relationships:
belongsTo: User, Playlist, Group