/
schema.rb
107 lines (91 loc) · 3.54 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
106
107
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record 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 => 20090522165628) do
create_table "occurrences", :force => true do |t|
t.string "name"
t.text "text"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "open_id_authentication_associations", :force => true do |t|
t.integer "issued"
t.integer "lifetime"
t.string "handle"
t.string "assoc_type"
t.binary "server_url"
t.binary "secret"
end
create_table "open_id_authentication_nonces", :force => true do |t|
t.integer "timestamp", :null => false
t.string "server_url"
t.string "salt", :null => false
end
create_table "properties", :force => true do |t|
t.integer "topic_id"
t.integer "property_type_id"
t.text "value"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "property_types", :force => true do |t|
t.string "name"
t.string "type_name"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "sessions", :force => true do |t|
t.string "session_id", :null => false
t.text "data"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
create_table "topics", :force => true do |t|
t.string "name"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "topics_occurrences", :force => true do |t|
t.integer "topic_id"
t.integer "occurrence_id"
end
create_table "topics_property_types", :force => true do |t|
t.integer "topic_id"
t.integer "property_type_id"
end
create_table "topics_topics", :id => false, :force => true do |t|
t.integer "parent_id"
t.integer "child_id"
end
add_index "topics_topics", ["child_id"], :name => "index_topics_topics_on_child_id"
add_index "topics_topics", ["parent_id"], :name => "index_topics_topics_on_parent_id"
create_table "users", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
t.string "login"
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token", :null => false
t.integer "login_count", :default => 0, :null => false
t.datetime "last_request_at"
t.datetime "last_login_at"
t.datetime "current_login_at"
t.string "last_login_ip"
t.string "current_login_ip"
t.string "openid_identifier"
end
add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at"
add_index "users", ["login"], :name => "index_users_on_login"
add_index "users", ["openid_identifier"], :name => "index_users_on_openid_identifier"
add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
end