# encoding: UTF-8
# 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 => 20120601091441) do

  create_table "c_stav_cinnosti", :primary_key => "ID_Stav_Cinnosti", :force => true do |t|
    t.string   "Nazov"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "c_stav_podujatia", :primary_key => "ID_Stav", :force => true do |t|
    t.string   "Nazov"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "c_stav_sponzor_dar", :primary_key => "ID_Stav_Dar", :force => true do |t|
    t.string   "Nazov"
    t.string   "Popis"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "c_stav_vstupeniek", :primary_key => "ID_Stav", :force => true do |t|
    t.string   "Nazov"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "c_typ_cinnosti", :primary_key => "ID_Typ_Cinnosti", :force => true do |t|
    t.string   "Nazov"
    t.string   "Popis"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "cinnosti", :primary_key => "ID_Cinnost", :force => true do |t|
    t.text     "Popis"
    t.date     "Datum_Od"
    t.date     "Datum_Do"
    t.text     "Zhodnotenie"
    t.integer  "ID_Typ_Cinnosti"
    t.integer  "ID_Stav_Cinnosti"
    t.integer  "ID_Podujatie"
    t.datetime "created_at",       :null => false
    t.datetime "updated_at",       :null => false
  end

  create_table "cinnosti_firmy", :id => false, :force => true do |t|
    t.integer  "ID_Cinnost", :null => false
    t.integer  "ID_Firma",   :null => false
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "cinnosti_zam", :id => false, :force => true do |t|
    t.integer  "ID_Cinnost", :null => false
    t.integer  "ID_Zam",     :null => false
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "evidencia_zmluv", :primary_key => "ID_Zmluva", :force => true do |t|
    t.date     "Datum_Od"
    t.date     "Datum_Do"
    t.string   "Nazov_Suboru"
    t.string   "Umiestnenie"
    t.integer  "ID_Firma"
    t.integer  "ID_Zam"
    t.integer  "ID_Klient"
    t.datetime "created_at",   :null => false
    t.datetime "updated_at",   :null => false
  end

  create_table "firmy", :primary_key => "ID_Firma", :force => true do |t|
    t.string   "Nazov"
    t.string   "Sidlo"
    t.string   "Stat"
    t.string   "ICO"
    t.string   "Telefon"
    t.string   "Email"
    t.text     "Prezentacia"
    t.string   "Poznamka"
    t.datetime "created_at",  :null => false
    t.datetime "updated_at",  :null => false
  end

  create_table "galeria_fotky", :primary_key => "ID_Obrazok", :force => true do |t|
    t.string  "Popis"
    t.date    "Datum_Vlozenia"
    t.string  "Nazov_Suboru"
    t.integer "ID_Firma"
    t.integer "ID_Klient"
    t.integer "ID_Podujatie"
  end

  create_table "klienti", :primary_key => "ID_Klient", :force => true do |t|
    t.string   "Meno"
    t.string   "Priezvisko"
    t.string   "Titul"
    t.string   "Nazov_Zdruzenie"
    t.text     "Zivotopis"
    t.string   "Ulica"
    t.string   "Mesto"
    t.string   "PSC"
    t.string   "Stat"
    t.string   "Telefon"
    t.string   "Email"
    t.string   "Cislo_Bank_Uctu"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
  end

  create_table "kontaktne_osoby", :primary_key => "ID_Kontakt", :force => true do |t|
    t.string   "Meno"
    t.string   "Priezvisko"
    t.string   "Titul"
    t.string   "Telefon"
    t.string   "Email"
    t.string   "Poznamka"
    t.integer  "ID_Firma"
    t.datetime "created_at", :null => false
    t.datetime "updated_at", :null => false
  end

  create_table "podujatia", :primary_key => "ID_Podujatie", :force => true do |t|
    t.string   "Nazov"
    t.string   "Popis"
    t.string   "Miesto"
    t.datetime "Datum_Od"
    t.datetime "Datum_Do"
    t.text     "Cas_Harmonogram"
    t.text     "Cennik"
    t.string   "Zhodnotenie"
    t.integer  "ID_Stav_Vstup"
    t.integer  "ID_Stav_Podujatie"
    t.datetime "created_at",        :null => false
    t.datetime "updated_at",        :null => false
  end

  create_table "podujatie_klienti", :id => false, :force => true do |t|
    t.integer  "ID_Podujatie", :null => false
    t.integer  "ID_Klient",    :null => false
    t.datetime "created_at",   :null => false
    t.datetime "updated_at",   :null => false
  end

  create_table "recenzie", :primary_key => "ID_Recenzia", :force => true do |t|
    t.datetime "Datum"
    t.text     "Popis"
    t.string   "Alias"
    t.integer  "ID_Podujatie"
    t.datetime "created_at",   :null => false
    t.datetime "updated_at",   :null => false
  end

  create_table "sponzorske_dary", :primary_key => "ID_Dar", :force => true do |t|
    t.string   "Nazov"
    t.string   "Popis"
    t.decimal  "Suma",         :precision => 10, :scale => 0
    t.integer  "ID_Stav_Dar"
    t.integer  "ID_Podujatie"
    t.integer  "ID_Firma"
    t.datetime "created_at",                                  :null => false
    t.datetime "updated_at",                                  :null => false
  end

  create_table "videa", :primary_key => "ID_Video", :force => true do |t|
    t.string  "Popis"
    t.date    "Datum_Vlozenia"
    t.string  "Nazov_Suboru"
    t.integer "ID_Klient"
  end

  create_table "zamestnanci", :primary_key => "ID_Zam", :force => true do |t|
    t.string   "Meno"
    t.string   "Priezvisko"
    t.string   "Titul"
    t.string   "Fotka"
    t.string   "Rodne_Cislo"
    t.string   "Ulica"
    t.string   "Mesto"
    t.string   "PSC"
    t.string   "Stat"
    t.string   "Telefon"
    t.string   "Email"
    t.string   "Cislo_Bank_Uctu"
    t.string   "Login_IS_Ucet"
    t.string   "Heslo_IS_Ucet"
    t.string   "Sol_Heslo"
    t.datetime "created_at",      :null => false
    t.datetime "updated_at",      :null => false
  end

  create_table "zvukove_subory", :primary_key => "ID_Z_Subor", :force => true do |t|
    t.string  "Popis"
    t.date    "Datum_Vlozenia"
    t.string  "Nazov_Suboru"
    t.integer "ID_Klient"
  end

end
