-
Notifications
You must be signed in to change notification settings - Fork 476
/
Copy pathschema.rb
57 lines (51 loc) · 1.18 KB
/
schema.rb
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
ActiveRecord::Schema.define do
create_table :blazer_queries do |t|
t.references :creator
t.string :name
t.text :description
t.text :statement
t.string :data_source
t.string :status
t.timestamps null: false
end
create_table :blazer_audits do |t|
t.references :user
t.references :query
t.text :statement
t.string :data_source
t.datetime :created_at
end
create_table :blazer_dashboards do |t|
t.references :creator
t.string :name
t.timestamps null: false
end
create_table :blazer_dashboard_queries do |t|
t.references :dashboard
t.references :query
t.integer :position
t.timestamps null: false
end
create_table :blazer_checks do |t|
t.references :creator
t.references :query
t.string :state
t.string :schedule
t.text :emails
t.text :slack_channels
t.string :check_type
t.string :last_results_hash
t.text :message
t.datetime :last_run_at
t.timestamps null: false
end
create_table :blazer_uploads do |t|
t.references :creator
t.string :table
t.text :description
t.timestamps null: false
end
create_table :users do |t|
t.string :name
end
end