1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- # 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.
- #
- # This file is the source Rails uses to define your schema when running `bin/rails
- # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
- # be faster and is potentially less error prone than running all of your
- # migrations from scratch. Old migrations may fail to apply correctly if those
- # migrations use external dependencies or application code.
- #
- # It's strongly recommended that you check this file into your version control system.
-
- ActiveRecord::Schema.define(version: 2021_08_03_152520) do
-
- # These are extensions that must be enabled in order to support this database
- enable_extension "plpgsql"
-
- create_table "activities", force: :cascade do |t|
- t.string "name", null: false
- t.string "client"
- t.string "description"
- t.bigint "author_id", null: false
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["author_id"], name: "index_activities_on_author_id"
- t.index ["name"], name: "index_activities_on_name"
- end
-
- create_table "joined_user_activities", force: :cascade do |t|
- t.bigint "user_id"
- t.bigint "activity_id"
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["activity_id"], name: "index_joined_user_activities_on_activity_id"
- t.index ["user_id"], name: "index_joined_user_activities_on_user_id"
- end
-
- create_table "memberships", force: :cascade do |t|
- t.bigint "member_id"
- t.bigint "team_id"
- t.boolean "can_edit", default: false
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["member_id"], name: "index_memberships_on_member_id"
- t.index ["team_id"], name: "index_memberships_on_team_id"
- end
-
- create_table "tasks", force: :cascade do |t|
- t.string "name", null: false
- t.text "description"
- t.integer "duration"
- t.bigint "activity_id", null: false
- t.bigint "user_id", null: false
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["activity_id"], name: "index_tasks_on_activity_id"
- t.index ["name"], name: "index_tasks_on_name"
- t.index ["user_id"], name: "index_tasks_on_user_id"
- end
-
- create_table "teams", force: :cascade do |t|
- t.string "name", null: false
- t.text "description"
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["name"], name: "index_teams_on_name", unique: true
- end
-
- create_table "users", force: :cascade do |t|
- t.string "email", null: false
- t.string "username", null: false
- t.string "password_digest"
- t.boolean "is_admin", default: false
- t.datetime "created_at", precision: 6, null: false
- t.datetime "updated_at", precision: 6, null: false
- t.index ["email"], name: "index_users_on_email", unique: true
- t.index ["username"], name: "index_users_on_username", unique: true
- end
-
- end
|