Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 8c5d46cfa5e188476abd7050bd5ec03ca185ddb5
  • main default protected
  • revert
  • 64160159
  • 64160292
  • 64160073
  • html-v_page
  • 64160174
  • 64160072
  • 64160295
  • production
11 results

2023_04_06_033755_member.php

Blame
  • 2023_04_06_033755_member.php 1.36 KiB
    <?php
    
    use Illuminate\Database\Migrations\Migration;
    use Illuminate\Database\Schema\Blueprint;
    use Illuminate\Support\Facades\Schema;
    
    return new class extends Migration
    {
        /**
         * Run the migrations.
         *
         * @return void
         */
        public function up()
        {
            Schema::create('Member', function (Blueprint $table){
                $table->id();
                $table->string('mem_id_card');
                $table->string('mem_prefix_th');
                $table->string('mem_prefix_en');
                $table->string('mem_fname_th');
                $table->string('mem_fname_en');
                $table->string('mem_lname_th');
                $table->string('mem_lname_en');
                $table->date('mem_birthday');
                $table->string('mem_lawyer_type');
                $table->string('mem_license');
                $table->string('mem_lawyer_affiliation');
                $table->string('mem_lawyer_relation');
                $table->string('mem_email')->unique();
                $table->string('mem_phone_nember', 10);
                $table->integer('mem_type')->default(0);
                $table->integer('mem_status')->default(0);
                $table->integer('mem_balance');
                $table->string('password')->nullable(false);
            });
        }
    
        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            Schema::dropIfExists('Member');
        }
    };