# This file is autogenerated. Instead of editing this file, please use the
# migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.

ActiveRecord::Schema.define() do

  create_table UserEngine.config(:permission_table), :force => true do |t|
    t.column "controller", :string, :default => "", :null => false
    t.column "action", :string, :default => "", :null => false
    t.column "description", :string
  end

  create_table UserEngine.config(:permission_role_table), :id => false, :force => true do |t|
    t.column "permission_id", :integer, :default => 0, :null => false
    t.column "role_id", :integer, :default => 0, :null => false
  end

  create_table UserEngine.config(:user_role_table), :id => false, :force => true do |t|
    t.column "user_id", :integer, :default => 0, :null => false
    t.column "role_id", :integer, :default => 0, :null => false
  end

  create_table UserEngine.config(:role_table), :force => true do |t|
    t.column "name", :string, :default => "", :null => false
    t.column "description", :string
    t.column "omnipotent", :boolean, :default => false, :null => false
    t.column "system_role", :boolean, :detault => false
  end

end
