Project

General

Profile

Download (7.38 KB) Statistics
| Branch: | Tag: | Revision:
b689e231 Marc Dequènes (Duck)
# This file is auto-generated from the current state of the database. Instead of editing this file,
443943b3 Marc Dequènes (Duck)
# please use the migrations feature of Active Record to incrementally modify your database, and
b689e231 Marc Dequènes (Duck)
# 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.

085f01eb Marc Dequènes (Duck)
ActiveRecord::Schema.define(:version => 20090411170814) do
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_conditions", :force => true do |t|
b689e231 Marc Dequènes (Duck)
t.string "name", :limit => 64, :null => false
3b6475bb Marc Dequènes (Duck)
t.integer "position", :null => false
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_conditions", ["name"], :name => "nom", :unique => true
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_groups", :force => true do |t|
t.string "name", :limit => 128, :null => false
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_set_id", :limit => 8, :null => false
b689e231 Marc Dequènes (Duck)
t.datetime "created_at"
t.datetime "updated_at"
443943b3 Marc Dequènes (Duck)
t.text "comment"
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_groups", ["name"], :name => "nom", :unique => true
add_index "artwork_groups", ["name"], :name => "nom_2"
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_materials", :force => true do |t|
b689e231 Marc Dequènes (Duck)
t.string "name", :limit => 128, :null => false
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_materials", ["name"], :name => "nom", :unique => true
add_index "artwork_materials", ["name"], :name => "nom_2"
b689e231 Marc Dequènes (Duck)
aaa55822 Marc Dequènes (Duck)
create_table "artwork_materials_artworks", :id => false, :force => true do |t|
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_id", :limit => 8, :null => false
t.integer "artwork_material_id", :null => false
aaa55822 Marc Dequènes (Duck)
end

add_index "artwork_materials_artworks", ["artwork_material_id", "artwork_id"], :name => "artwork_material_id", :unique => true

443943b3 Marc Dequènes (Duck)
create_table "artwork_placement_reasons", :force => true do |t|
b689e231 Marc Dequènes (Duck)
t.string "name", :limit => 64, :null => false
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_placement_reasons", ["name"], :name => "nom", :unique => true
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_sets", :force => true do |t|
b689e231 Marc Dequènes (Duck)
t.string "name", :limit => 128, :null => false
t.datetime "created_at"
t.datetime "updated_at"
443943b3 Marc Dequènes (Duck)
t.text "comment"
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_sets", ["name"], :name => "nom", :unique => true
add_index "artwork_sets", ["name"], :name => "nom_2"
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_sizes", :force => true do |t|
3b6475bb Marc Dequènes (Duck)
t.integer "height", :null => false
t.integer "width", :null => false
t.boolean "standard", :default => false, :null => false
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_sizes", ["height", "width"], :name => "proportion", :unique => true
b689e231 Marc Dequènes (Duck)
443943b3 Marc Dequènes (Duck)
create_table "artwork_steps", :force => true do |t|
t.string "filename", :limit => 512, :null => false
t.date "date"
3b6475bb Marc Dequènes (Duck)
t.integer "position", :limit => 1, :null => false
t.integer "artwork_id", :limit => 8
b689e231 Marc Dequènes (Duck)
t.datetime "created_at"
t.datetime "updated_at"
3b6475bb Marc Dequènes (Duck)
t.integer "size", :limit => 8, :null => false
443943b3 Marc Dequènes (Duck)
t.string "content_type", :limit => 64, :null => false
3b6475bb Marc Dequènes (Duck)
t.integer "height", :null => false
t.integer "width", :null => false
t.integer "parent_id", :limit => 8
443943b3 Marc Dequènes (Duck)
t.string "thumbnail", :limit => 64
t.string "type", :limit => 64, :null => false
t.string "comment", :limit => 512
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "artwork_steps", ["filename"], :name => "image_filename", :unique => true

70e65017 Marc Dequènes (Duck)
create_table "artwork_supports", :force => true do |t|
t.string "name", :limit => 128, :null => false
t.string "acronym", :limit => 8
end

add_index "artwork_supports", ["name", "acronym"], :name => "nom", :unique => true
add_index "artwork_supports", ["name"], :name => "nom_2"

aaa55822 Marc Dequènes (Duck)
create_table "artwork_supports_artworks", :id => false, :force => true do |t|
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_support_id", :null => false
t.integer "artwork_id", :limit => 8, :null => false
70e65017 Marc Dequènes (Duck)
end

add_index "artwork_supports_artworks", ["artwork_support_id", "artwork_id"], :name => "artwork_support_id", :unique => true

443943b3 Marc Dequènes (Duck)
create_table "artworks", :force => true do |t|
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_set_id", :limit => 8
443943b3 Marc Dequènes (Duck)
t.string "artwork_set_position", :limit => 32
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_group_id", :limit => 8
443943b3 Marc Dequènes (Duck)
t.string "artwork_group_position", :limit => 32
t.string "title", :limit => 256, :null => false
3b6475bb Marc Dequènes (Duck)
t.integer "artwork_size_id", :null => false
t.integer "artwork_condition_id", :null => false
t.integer "artwork_placement_reason_id"
443943b3 Marc Dequènes (Duck)
t.string "placement_location", :limit => 256
t.date "placement_date"
t.text "comment"
t.datetime "created_at"
t.datetime "updated_at"
end
b689e231 Marc Dequènes (Duck)
3b6475bb Marc Dequènes (Duck)
create_table "artworks_tags", :id => false, :force => true do |t|
t.integer "tag_id", :null => false
t.integer "artwork_id", :limit => 8, :null => false
443943b3 Marc Dequènes (Duck)
end

3b6475bb Marc Dequènes (Duck)
add_index "artworks_tags", ["tag_id", "artwork_id"], :name => "tag_id", :unique => true
443943b3 Marc Dequènes (Duck)
create_table "exhibitions", :force => true do |t|
t.string "name", :limit => 128, :null => false
t.date "start", :null => false
t.date "end", :null => false
t.string "place", :limit => 128, :null => false
t.boolean "hidden", :default => false, :null => false
t.datetime "created_at"
t.datetime "updated_at"
b689e231 Marc Dequènes (Duck)
end

443943b3 Marc Dequènes (Duck)
add_index "exhibitions", ["name"], :name => "nom", :unique => true
add_index "exhibitions", ["name"], :name => "nom_2"
b689e231 Marc Dequènes (Duck)
3b6475bb Marc Dequènes (Duck)
create_table "exhibitions_artworks", :id => false, :force => true do |t|
t.integer "exhibition_id", :limit => 8, :null => false
t.integer "artwork_id", :limit => 8, :null => false
t.integer "position", :limit => 8, :null => false
end

add_index "exhibitions_artworks", ["exhibition_id", "artwork_id"], :name => "exhibition_id", :unique => true

085f01eb Marc Dequènes (Duck)
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"

3b6475bb Marc Dequènes (Duck)
create_table "tags", :force => true do |t|
t.string "name", :limit => 32, :null => false
end

d0ff9068 Marc Dequènes (Duck)
create_table "users", :force => true do |t|
1ed9be73 Marc Dequènes (Duck)
t.string "login", :limit => 64, :null => false
t.string "real_name", :limit => 256
t.string "email", :limit => 128
t.string "hashed_password", :limit => 512, :null => false
t.string "salt", :limit => 64, :null => false
d0ff9068 Marc Dequènes (Duck)
t.datetime "created_at"
t.datetime "updated_at"
1ed9be73 Marc Dequènes (Duck)
t.boolean "admin", :default => false, :null => false
t.string "prefered_language", :limit => 16
d0ff9068 Marc Dequènes (Duck)
end

add_index "users", ["login"], :name => "login", :unique => true
add_index "users", ["real_name"], :name => "real_name", :unique => true

b689e231 Marc Dequènes (Duck)
end