-
Notifications
You must be signed in to change notification settings - Fork 2
/
Schemafile
80 lines (72 loc) · 1.88 KB
/
Schemafile
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
# -*- mode: ruby -*-
create_table "servents", force: true do |t|
t.string "name", default: ""
t.string "desc", default: ""
t.string "hostname"
t.integer "port"
t.string "auth_id"
t.string "passwd"
t.integer "priority"
t.integer "max_channels", default: 0
t.boolean "enabled", default: false
t.string "agent"
t.string "yellow_pages", default: ""
end
create_table "channels", force: true do |t|
t.string "gnu_id"
t.belongs_to :user, index: true
t.belongs_to :servent, index: true
t.boolean "hide_screenshots", default: false
t.datetime "last_active_at"
t.datetime "created_at"
t.string "push_uri"
t.string "stream_key"
end
create_table "users", force: true do |t|
t.string "name"
t.string "image"
t.integer "twitter_id", limit: 8
t.string "twitch_id"
t.boolean "admin", default: false
t.boolean "suspended", default: false
t.datetime "notice_checked_at"
t.datetime "logged_on_at"
t.text "bio"
end
create_table "channel_infos", force: true do |t|
t.references :user, index: true
t.string "channel"
t.string "genre"
t.string "desc"
t.string "comment"
t.string "url"
t.string "stream_type"
t.string "yp"
t.timestamps
t.references :channel, index: true
t.datetime "terminated_at"
t.integer "primary_screen_shot_id", default: nil
t.boolean "hide_screenshots", default: false
t.string "source_name"
t.references :servent, index: false
end
create_table "screen_shots", force: true do |t|
t.belongs_to :channel_info, index: true
t.string "filename"
t.datetime "created_at"
end
create_table "notices", force: true do |t|
t.text :body
t.string :title
t.timestamps
end
create_table "sources", force: true do |t|
t.belongs_to :user, index: true
t.string :name
t.string :key
end
create_table "passwords", force: true do |t|
t.belongs_to :user, index: true
t.string :sha256sum
t.string :salt, default: ""
end