From 4b204b99ab638140b7d1928def2c75790d0af933 Mon Sep 17 00:00:00 2001 From: Michael Sipayung Date: Thu, 1 Feb 2024 10:42:12 +0700 Subject: [PATCH] system integration test --- ..._rename_column_pmdk_each_to_normal_case.rb | 2 +- db/schema.rb | 843 +++++++++--------- 2 files changed, 421 insertions(+), 424 deletions(-) diff --git a/db/migrate/20240131145828_rename_column_pmdk_each_to_normal_case.rb b/db/migrate/20240131145828_rename_column_pmdk_each_to_normal_case.rb index 5865f42..dbf1730 100644 --- a/db/migrate/20240131145828_rename_column_pmdk_each_to_normal_case.rb +++ b/db/migrate/20240131145828_rename_column_pmdk_each_to_normal_case.rb @@ -24,7 +24,7 @@ def change :kimia4 rename_column :pmdk_each_score_informations, :kimia_semester_5, :kimia5 - rename_column :pmdk_each_score_informations, :inggris1, + rename_column :pmdk_each_score_informations, :bahasa_inggris_semester_1, :inggris1 rename_column :pmdk_each_score_informations, :bahasa_inggris_semester_2, :inggri2 diff --git a/db/schema.rb b/db/schema.rb index 5685ae0..74dff06 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # 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. @@ -12,452 +10,451 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 20_240_201_014_932) do - create_table 'accreditation_school_lists', force: :cascade do |t| - t.string 'akreditasi' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'achievement_kategori_lists', force: :cascade do |t| - t.string 'kategori' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end +ActiveRecord::Schema[7.1].define(version: 2024_02_01_014932) do + create_table "accreditation_school_lists", force: :cascade do |t| + t.string "akreditasi" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end - create_table 'achievement_tingkat_lists', force: :cascade do |t| - t.string 'tingkat' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "achievement_kategori_lists", force: :cascade do |t| + t.string "kategori" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'achievements', force: :cascade do |t| - t.string 'nama_prestasi' - t.date 'tahun' - t.string 'tingkat' - t.string 'kategori' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_achievements_on_user_id' - end - - create_table 'active_storage_attachments', force: :cascade do |t| - t.string 'name', null: false - t.string 'record_type', null: false - t.bigint 'record_id', null: false - t.bigint 'blob_id', null: false - t.datetime 'created_at', null: false - t.index ['blob_id'], name: 'index_active_storage_attachments_on_blob_id' - t.index %w[record_type record_id name blob_id], name: 'index_active_storage_attachments_uniqueness', - unique: true + create_table "achievement_tingkat_lists", force: :cascade do |t| + t.string "tingkat" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "achievements", force: :cascade do |t| + t.string "nama_prestasi" + t.date "tahun" + t.string "tingkat" + t.string "kategori" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_achievements_on_user_id" end - create_table 'active_storage_blobs', force: :cascade do |t| - t.string 'key', null: false - t.string 'filename', null: false - t.string 'content_type' - t.text 'metadata' - t.string 'service_name', null: false - t.bigint 'byte_size', null: false - t.string 'checksum' - t.datetime 'created_at', null: false - t.index ['key'], name: 'index_active_storage_blobs_on_key', unique: true - end - - create_table 'active_storage_variant_records', force: :cascade do |t| - t.bigint 'blob_id', null: false - t.string 'variation_digest', null: false - t.index %w[blob_id variation_digest], name: 'index_active_storage_variant_records_uniqueness', unique: true + create_table "active_storage_attachments", force: :cascade do |t| + t.string "name", null: false + t.string "record_type", null: false + t.bigint "record_id", null: false + t.bigint "blob_id", null: false + t.datetime "created_at", null: false + t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" + t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true end - - create_table 'address_kabupaten_lists', force: :cascade do |t| - t.string 'kabupaten' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'address_province_list_id', null: false - t.index ['address_province_list_id'], name: 'index_address_kabupaten_lists_on_address_province_list_id' + + create_table "active_storage_blobs", force: :cascade do |t| + t.string "key", null: false + t.string "filename", null: false + t.string "content_type" + t.text "metadata" + t.string "service_name", null: false + t.bigint "byte_size", null: false + t.string "checksum" + t.datetime "created_at", null: false + t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true + end + + create_table "active_storage_variant_records", force: :cascade do |t| + t.bigint "blob_id", null: false + t.string "variation_digest", null: false + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end - create_table 'address_kecamatan_lists', force: :cascade do |t| - t.string 'kecamatan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'address_kabupaten_list_id', null: false - t.index ['address_kabupaten_list_id'], name: 'index_address_kecamatan_lists_on_address_kabupaten_list_id' + create_table "address_kabupaten_lists", force: :cascade do |t| + t.string "kabupaten" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "address_province_list_id", null: false + t.index ["address_province_list_id"], name: "index_address_kabupaten_lists_on_address_province_list_id" end - create_table 'address_province_lists', force: :cascade do |t| - t.string 'provinsi' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "address_kecamatan_lists", force: :cascade do |t| + t.string "kecamatan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "address_kabupaten_list_id", null: false + t.index ["address_kabupaten_list_id"], name: "index_address_kecamatan_lists_on_address_kabupaten_list_id" end - create_table 'addresses', force: :cascade do |t| - t.string 'alamat' - t.string 'kelurahan' - t.string 'kecamatan' - t.integer 'kode_pos' - t.string 'provinsi' - t.integer 'no_telepon' - t.string 'kabupaten' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_addresses_on_user_id' + create_table "address_province_lists", force: :cascade do |t| + t.string "provinsi" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'all_school_lists', force: :cascade do |t| - t.string 'sekolah' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'batch_lists', force: :cascade do |t| - t.string 'gelombang' - t.boolean 'aktif' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "addresses", force: :cascade do |t| + t.string "alamat" + t.string "kelurahan" + t.string "kecamatan" + t.integer "kode_pos" + t.string "provinsi" + t.integer "no_telepon" + t.string "kabupaten" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_addresses_on_user_id" + end + + create_table "all_school_lists", force: :cascade do |t| + t.string "sekolah" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'cost_lists', force: :cascade do |t| - t.integer 'biaya' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'cost_vourcher_lists', force: :cascade do |t| - t.string 'voucher' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'costs', force: :cascade do |t| - t.integer 'biaya' - t.integer 'virtual_account' - t.string 'voucher' - t.integer 'total_bayar' - t.boolean 'status_pembayaran' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_costs_on_user_id' + create_table "batch_lists", force: :cascade do |t| + t.string "gelombang" + t.boolean "aktif" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "cost_lists", force: :cascade do |t| + t.integer "biaya" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "cost_vourcher_lists", force: :cascade do |t| + t.string "voucher" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "costs", force: :cascade do |t| + t.integer "biaya" + t.integer "virtual_account" + t.string "voucher" + t.integer "total_bayar" + t.boolean "status_pembayaran" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_costs_on_user_id" end - create_table 'extra_lists', force: :cascade do |t| - t.string 'predikat' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "extra_lists", force: :cascade do |t| + t.string "predikat" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'extras', force: :cascade do |t| - t.string 'nama_kegiatan' - t.date 'mulai' - t.date 'berakhir' - t.string 'predikat' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_extras_on_user_id' + create_table "extras", force: :cascade do |t| + t.string "nama_kegiatan" + t.date "mulai" + t.date "berakhir" + t.string "predikat" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_extras_on_user_id" end - create_table 'high_school_majors', force: :cascade do |t| - t.string 'jurusan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "high_school_majors", force: :cascade do |t| + t.string "jurusan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'language_degree_lists', force: :cascade do |t| - t.string 'tingkat' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "language_degree_lists", force: :cascade do |t| + t.string "tingkat" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table 'language_name_lists', force: :cascade do |t| - t.string 'bahasa' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false + create_table "language_name_lists", force: :cascade do |t| + t.string "bahasa" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - - create_table 'languages', force: :cascade do |t| - t.string 'nama_bahasa' - t.string 'tingkat' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_languages_on_user_id' - end - - create_table 'major_lists', force: :cascade do |t| - t.string 'jurusan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'majors', force: :cascade do |t| - t.string 'jurusan1' - t.string 'jurusan2' - t.string 'jurusan3' - t.string 'gelombang' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_majors_on_user_id' - end - - create_table 'microposts', force: :cascade do |t| - t.text 'content' - t.integer 'user_id', null: false - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.index %w[user_id created_at], name: 'index_microposts_on_user_id_and_created_at' - t.index ['user_id'], name: 'index_microposts_on_user_id' - end - - create_table 'organization_degree_lists', force: :cascade do |t| - t.string 'jabatan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'organizations', force: :cascade do |t| - t.string 'nama_organisasi' - t.date 'mulai' - t.date 'berakhir' - t.string 'jabatan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_organizations_on_user_id' - end - - create_table 'parent_education_lists', force: :cascade do |t| - t.string 'pendidikan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'parent_job_lists', force: :cascade do |t| - t.string 'pekerjaan' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'parents', force: :cascade do |t| - t.string 'nama_ayah' - t.string 'nama_ibu' - t.integer 'nik_ayah' - t.integer 'nik_ibu' - t.string 'pendidikan_ayah' - t.string 'pendidikan_ibu' - t.date 'tanggal_lahir_ayah' - t.date 'tanggal_lahir_ibu' - t.string 'pekerjaan_ayah' - t.string 'pekerjaan_ibu' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_parents_on_user_id' - end - - create_table 'personal_gender_lists', force: :cascade do |t| - t.string 'jenis_kelamin' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'personal_religion_lists', force: :cascade do |t| - t.string 'agama' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'personals', force: :cascade do |t| - t.string 'nama_lengkap' - t.string 'agama' - t.integer 'nik' - t.integer 'nisn' - t.integer 'no_kps' - t.date 'tanggal_lahir' - t.string 'tempat_lahir' - t.string 'jenis_kelamin' - t.string 'domisili' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_personals_on_user_id' - end - - create_table 'pmdk_each_score_informations', force: :cascade do |t| - t.decimal 'matematika_semester1' - t.decimal 'matematika_semester2' - t.decimal 'matematika_semester3' - t.decimal 'matematika_semester4' - t.decimal 'matematika5' - t.decimal 'fisika1' - t.decimal 'fisika2' - t.decimal 'fisika3' - t.decimal 'fisika4' - t.decimal 'fisika5' - t.decimal 'kimia1' - t.decimal 'kimia2' - t.decimal 'kimia3' - t.decimal 'kimia4' - t.decimal 'kimia5' - t.decimal 'inggris1' - t.decimal 'inggris2' - t.decimal 'inggris3' - t.decimal 'inggris4' - t.decimal 'inggris5' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_pmdk_each_score_informations_on_user_id' - end - - create_table 'pmdk_school_informations', force: :cascade do |t| - t.string 'asal_sekolah' - t.string 'akreditas' - t.integer 'jumlah_pelajaran_un' - t.decimal 'jumlah_nilai_un' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.string 'jurusan_sekolah' - t.index ['user_id'], name: 'index_pmdk_school_informations_on_user_id' - end - - create_table 'pmdk_school_lists', force: :cascade do |t| - t.string 'sekolah' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'pmdk_total_score_informations', force: :cascade do |t| - t.decimal 'jumlah_nilai_semester1' - t.decimal 'jumlah_nilai_semester2' - t.decimal 'jumlah_nilai_semester3' - t.decimal 'jumlah_nilai_semester4' - t.decimal 'jumlah_nilai_semester5' - t.integer 'jumlah_pelajaran_semester1' - t.integer 'jumlah_pelajaran_semester2' - t.integer 'jumlah_pelajaran_semester3' - t.integer 'jumlah_pelajaran_semester4' - t.integer 'jumlah_pelajaran_semester5' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_pmdk_total_score_informations_on_user_id' - end - - create_table 'relationships', force: :cascade do |t| - t.integer 'follower_id' - t.integer 'followed_id' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.index ['followed_id'], name: 'index_relationships_on_followed_id' - t.index %w[follower_id followed_id], name: 'index_relationships_on_follower_id_and_followed_id', unique: true - t.index ['follower_id'], name: 'index_relationships_on_follower_id' - end - - create_table 'source_information_lists', force: :cascade do |t| - t.string 'informasi' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'source_motivation_lists', force: :cascade do |t| - t.string 'motivasi' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - end - - create_table 'sources', force: :cascade do |t| - t.integer 'jumlah_n' - t.string 'sumber_informasi' - t.string 'motivasi' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_sources_on_user_id' - end - - create_table 'users', force: :cascade do |t| - t.string 'name' - t.string 'email' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.string 'password_digest' - t.string 'remember_digest' - t.boolean 'admin', default: false - t.string 'activation_digest' - t.boolean 'activated', default: false - t.datetime 'activated_at' - t.string 'reset_digest' - t.datetime 'reset_sent_at' - t.index ['email'], name: 'index_users_on_email', unique: true - end - - create_table 'usm_school_informations', force: :cascade do |t| - t.string 'asal_sekolah' - t.string 'akreditas' - t.integer 'jumlah_pelajaran_un' - t.decimal 'jumlah_nilai_un' - t.string 'jurusan_sekolah' - t.integer 'jumlah_pelajaran_semester5' - t.decimal 'jumlah_nilai_semester5' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_usm_school_informations_on_user_id' - end - - create_table 'utbk_school_informations', force: :cascade do |t| - t.string 'asal_sekolah' - t.string 'akreditas' - t.integer 'jumlah_pelajaran_un' - t.decimal 'jumlah_nilai_un' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.string 'jurusan_sekolah' - t.index ['user_id'], name: 'index_utbk_school_informations_on_user_id' - end - - create_table 'utbk_scores', force: :cascade do |t| - t.string 'no_peserta' - t.date 'tanggal_ujian' - t.decimal 'nilai_penalaran_umum' - t.decimal 'nilai_pengetahuan_kuantitatif' - t.decimal 'nilai_pengetahuan_dan_pemahaman_umum' - t.decimal 'nilai_kemampuan_memahami_bacaan_dan_menulis' - t.integer 'jumlah_pelajaran_semester6' - t.decimal 'jumlah_nilai_semester6' - t.datetime 'created_at', null: false - t.datetime 'updated_at', null: false - t.integer 'user_id', null: false - t.index ['user_id'], name: 'index_utbk_scores_on_user_id' - end - - add_foreign_key 'achievements', 'users' - add_foreign_key 'active_storage_attachments', 'active_storage_blobs', column: 'blob_id' - add_foreign_key 'active_storage_variant_records', 'active_storage_blobs', column: 'blob_id' - add_foreign_key 'address_kabupaten_lists', 'address_province_lists' - add_foreign_key 'address_kecamatan_lists', 'address_kabupaten_lists' - add_foreign_key 'addresses', 'users' - add_foreign_key 'costs', 'users' - add_foreign_key 'extras', 'users' - add_foreign_key 'languages', 'users' - add_foreign_key 'majors', 'users' - add_foreign_key 'microposts', 'users' - add_foreign_key 'organizations', 'users' - add_foreign_key 'parents', 'users' - add_foreign_key 'personals', 'users' - add_foreign_key 'pmdk_each_score_informations', 'users' - add_foreign_key 'pmdk_school_informations', 'users' - add_foreign_key 'pmdk_total_score_informations', 'users' - add_foreign_key 'sources', 'users' - add_foreign_key 'usm_school_informations', 'users' - add_foreign_key 'utbk_school_informations', 'users' - add_foreign_key 'utbk_scores', 'users' + + create_table "languages", force: :cascade do |t| + t.string "nama_bahasa" + t.string "tingkat" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_languages_on_user_id" + end + + create_table "major_lists", force: :cascade do |t| + t.string "jurusan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "majors", force: :cascade do |t| + t.string "jurusan1" + t.string "jurusan2" + t.string "jurusan3" + t.string "gelombang" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_majors_on_user_id" + end + + create_table "microposts", force: :cascade do |t| + t.text "content" + t.integer "user_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id", "created_at"], name: "index_microposts_on_user_id_and_created_at" + t.index ["user_id"], name: "index_microposts_on_user_id" + end + + create_table "organization_degree_lists", force: :cascade do |t| + t.string "jabatan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "organizations", force: :cascade do |t| + t.string "nama_organisasi" + t.date "mulai" + t.date "berakhir" + t.string "jabatan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_organizations_on_user_id" + end + + create_table "parent_education_lists", force: :cascade do |t| + t.string "pendidikan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "parent_job_lists", force: :cascade do |t| + t.string "pekerjaan" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "parents", force: :cascade do |t| + t.string "nama_ayah" + t.string "nama_ibu" + t.integer "nik_ayah" + t.integer "nik_ibu" + t.string "pendidikan_ayah" + t.string "pendidikan_ibu" + t.date "tanggal_lahir_ayah" + t.date "tanggal_lahir_ibu" + t.string "pekerjaan_ayah" + t.string "pekerjaan_ibu" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_parents_on_user_id" + end + + create_table "personal_gender_lists", force: :cascade do |t| + t.string "jenis_kelamin" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "personal_religion_lists", force: :cascade do |t| + t.string "agama" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "personals", force: :cascade do |t| + t.string "nama_lengkap" + t.string "agama" + t.integer "nik" + t.integer "nisn" + t.integer "no_kps" + t.date "tanggal_lahir" + t.string "tempat_lahir" + t.string "jenis_kelamin" + t.string "domisili" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_personals_on_user_id" + end + + create_table "pmdk_each_score_informations", force: :cascade do |t| + t.decimal "matematika_semester1" + t.decimal "matematika_semester2" + t.decimal "matematika_semester3" + t.decimal "matematika_semester4" + t.decimal "matematika5" + t.decimal "fisika1" + t.decimal "fisika2" + t.decimal "fisika3" + t.decimal "fisika4" + t.decimal "fisika5" + t.decimal "kimia1" + t.decimal "kimia2" + t.decimal "kimia3" + t.decimal "kimia4" + t.decimal "kimia5" + t.decimal "inggris1" + t.decimal "inggris2" + t.decimal "inggris3" + t.decimal "inggris4" + t.decimal "inggris5" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_pmdk_each_score_informations_on_user_id" + end + + create_table "pmdk_school_informations", force: :cascade do |t| + t.string "asal_sekolah" + t.string "akreditas" + t.integer "jumlah_pelajaran_un" + t.decimal "jumlah_nilai_un" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.string "jurusan_sekolah" + t.index ["user_id"], name: "index_pmdk_school_informations_on_user_id" + end + + create_table "pmdk_school_lists", force: :cascade do |t| + t.string "sekolah" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "pmdk_total_score_informations", force: :cascade do |t| + t.decimal "jumlah_nilai_semester1" + t.decimal "jumlah_nilai_semester2" + t.decimal "jumlah_nilai_semester3" + t.decimal "jumlah_nilai_semester4" + t.decimal "jumlah_nilai_semester5" + t.integer "jumlah_pelajaran_semester1" + t.integer "jumlah_pelajaran_semester2" + t.integer "jumlah_pelajaran_semester3" + t.integer "jumlah_pelajaran_semester4" + t.integer "jumlah_pelajaran_semester5" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_pmdk_total_score_informations_on_user_id" + end + + create_table "relationships", force: :cascade do |t| + t.integer "follower_id" + t.integer "followed_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["followed_id"], name: "index_relationships_on_followed_id" + t.index ["follower_id", "followed_id"], name: "index_relationships_on_follower_id_and_followed_id", unique: true + t.index ["follower_id"], name: "index_relationships_on_follower_id" + end + + create_table "source_information_lists", force: :cascade do |t| + t.string "informasi" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "source_motivation_lists", force: :cascade do |t| + t.string "motivasi" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "sources", force: :cascade do |t| + t.integer "jumlah_n" + t.string "sumber_informasi" + t.string "motivasi" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_sources_on_user_id" + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "password_digest" + t.string "remember_digest" + t.boolean "admin", default: false + t.string "activation_digest" + t.boolean "activated", default: false + t.datetime "activated_at" + t.string "reset_digest" + t.datetime "reset_sent_at" + t.index ["email"], name: "index_users_on_email", unique: true + end + + create_table "usm_school_informations", force: :cascade do |t| + t.string "asal_sekolah" + t.string "akreditas" + t.integer "jumlah_pelajaran_un" + t.decimal "jumlah_nilai_un" + t.string "jurusan_sekolah" + t.integer "jumlah_pelajaran_semester5" + t.decimal "jumlah_nilai_semester5" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_usm_school_informations_on_user_id" + end + + create_table "utbk_school_informations", force: :cascade do |t| + t.string "asal_sekolah" + t.string "akreditas" + t.integer "jumlah_pelajaran_un" + t.decimal "jumlah_nilai_un" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.string "jurusan_sekolah" + t.index ["user_id"], name: "index_utbk_school_informations_on_user_id" + end + + create_table "utbk_scores", force: :cascade do |t| + t.string "no_peserta" + t.date "tanggal_ujian" + t.decimal "nilai_penalaran_umum" + t.decimal "nilai_pengetahuan_kuantitatif" + t.decimal "nilai_pengetahuan_dan_pemahaman_umum" + t.decimal "nilai_kemampuan_memahami_bacaan_dan_menulis" + t.integer "jumlah_pelajaran_semester6" + t.decimal "jumlah_nilai_semester6" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id", null: false + t.index ["user_id"], name: "index_utbk_scores_on_user_id" + end + + add_foreign_key "achievements", "users" + add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" + add_foreign_key "address_kabupaten_lists", "address_province_lists" + add_foreign_key "address_kecamatan_lists", "address_kabupaten_lists" + add_foreign_key "addresses", "users" + add_foreign_key "costs", "users" + add_foreign_key "extras", "users" + add_foreign_key "languages", "users" + add_foreign_key "majors", "users" + add_foreign_key "microposts", "users" + add_foreign_key "organizations", "users" + add_foreign_key "parents", "users" + add_foreign_key "personals", "users" + add_foreign_key "pmdk_each_score_informations", "users" + add_foreign_key "pmdk_school_informations", "users" + add_foreign_key "pmdk_total_score_informations", "users" + add_foreign_key "sources", "users" + add_foreign_key "usm_school_informations", "users" + add_foreign_key "utbk_school_informations", "users" + add_foreign_key "utbk_scores", "users" end