-
Notifications
You must be signed in to change notification settings - Fork 346
/
schema.rb
105 lines (91 loc) · 3.8 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
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
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 21) do
create_table "config", :force => true do |t|
t.string "key", :limit => 40, :default => "", :null => false
t.string "value", :default => ""
end
add_index "config", ["key"], :name => "key", :unique => true
create_table "extension_meta", :force => true do |t|
t.string "name"
t.integer "schema_version", :default => 0
t.boolean "enabled", :default => true
end
create_table "layouts", :force => true do |t|
t.string "name", :limit => 100
t.text "content"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "created_by_id"
t.integer "updated_by_id"
t.string "content_type", :limit => 40
t.integer "lock_version", :default => 0
end
create_table "page_parts", :force => true do |t|
t.string "name", :limit => 100
t.string "filter_id", :limit => 25
t.text "content"
t.integer "page_id"
end
create_table "pages", :force => true do |t|
t.string "title"
t.string "slug", :limit => 100
t.string "breadcrumb", :limit => 160
t.string "class_name", :limit => 25
t.integer "status_id", :default => 1, :null => false
t.integer "parent_id"
t.integer "layout_id"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "published_at"
t.integer "created_by_id"
t.integer "updated_by_id"
t.boolean "virtual", :default => false, :null => false
t.integer "lock_version", :default => 0
t.string "description"
t.string "keywords"
end
create_table "sessions", :force => true do |t|
t.string "session_id"
t.text "data"
t.datetime "updated_at"
end
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
create_table "snippets", :force => true do |t|
t.string "name", :limit => 100, :default => "", :null => false
t.string "filter_id", :limit => 25
t.text "content"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "created_by_id"
t.integer "updated_by_id"
t.integer "lock_version", :default => 0
end
add_index "snippets", ["name"], :name => "name", :unique => true
create_table "users", :force => true do |t|
t.string "name", :limit => 100
t.string "email"
t.string "login", :limit => 40, :default => "", :null => false
t.string "password", :limit => 40
t.datetime "created_at"
t.datetime "updated_at"
t.integer "created_by_id"
t.integer "updated_by_id"
t.boolean "admin", :default => false, :null => false
t.boolean "developer", :default => false, :null => false
t.text "notes"
t.integer "lock_version", :default => 0
t.string "salt"
t.string "session_token"
end
add_index "users", ["login"], :name => "login", :unique => true
end