root/db/schema.rb @ d3d4a9b0
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.
|
|||
443943b3 | Marc Dequènes (Duck) | ActiveRecord::Schema.define(:version => 0) 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
|
|
443943b3 | Marc Dequènes (Duck) | t.integer "position", :limit => 11, :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
|
|||
t.integer "artwork_set_id", :limit => 11, :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) | ||
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|
|
|
b689e231 | Marc Dequènes (Duck) | t.float "height", :null => false
|
|
t.float "width", :null => false
|
|||
t.boolean "standard", :default => false, :null => false
|
|||
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"
|
|||
t.integer "artwork_id", :limit => 20
|
|||
b689e231 | Marc Dequènes (Duck) | t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|||
443943b3 | Marc Dequènes (Duck) | t.integer "size", :limit => 20, :null => false
|
|
t.string "content_type", :limit => 64, :null => false
|
|||
t.integer "height", :limit => 11, :null => false
|
|||
t.integer "width", :limit => 11, :null => false
|
|||
t.integer "parent_id", :limit => 20
|
|||
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
|
|
create_table "artworks", :force => true do |t|
|
|||
t.integer "artwork_set_id", :limit => 20
|
|||
t.string "artwork_set_position", :limit => 32
|
|||
t.integer "artwork_group_id", :limit => 20
|
|||
t.string "artwork_group_position", :limit => 32
|
|||
t.string "title", :limit => 256, :null => false
|
|||
t.integer "artwork_material_id", :limit => 10, :null => false
|
|||
t.integer "artwork_size_id", :limit => 10, :null => false
|
|||
t.integer "artwork_condition_id", :limit => 10, :null => false
|
|||
t.integer "artwork_placement_reason_id", :limit => 10
|
|||
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) | ||
443943b3 | Marc Dequènes (Duck) | create_table "artworks_techniques", :force => true do |t|
|
|
b689e231 | Marc Dequènes (Duck) | t.integer "technique_id", :limit => 10, :null => false
|
|
443943b3 | Marc Dequènes (Duck) | t.integer "artwork_id", :limit => 20, :null => false
|
|
end
|
|||
add_index "artworks_techniques", ["technique_id", "artwork_id"], :name => "technique_id", :unique => true
|
|||
create_table "exhibition_artwork", :force => true do |t|
|
|||
t.integer "exhibition_id", :limit => 20, :null => false
|
|||
t.integer "artwork_id", :limit => 20, :null => false
|
|||
t.integer "position", :limit => 20, :null => false
|
|||
end
|
|||
add_index "exhibition_artwork", ["exhibition_id", "artwork_id"], :name => "exhibition_id", :unique => true
|
|||
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) | ||
create_table "techniques", :force => true do |t|
|
|||
t.string "name", :limit => 128, :null => false
|
|||
t.string "acronym", :limit => 8
|
|||
end
|
|||
add_index "techniques", ["name", "acronym"], :name => "nom", :unique => true
|
|||
add_index "techniques", ["name"], :name => "nom_2"
|
|||
d0ff9068 | Marc Dequènes (Duck) | create_table "users", :force => true do |t|
|
|
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
|
|||
t.datetime "created_at"
|
|||
t.datetime "updated_at"
|
|||
t.boolean "admin", :default => false, :null => false
|
|||
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
|