Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 3bfe0608c0e6db315b4ae6b83afb2078749fe3f7
  • main default protected
  • revert-a98119d8
3 results

CHANGELOG.md

Blame
  • 2023_04_06_033755_member.php 1.27 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('Mamber', function (Blueprint $table){
                $table->mem_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');
                $table->string('mem_phone_nember', 10);
                $table->integer('mem_type')->default(0);
                $table->integer('mem_status')->default(0);
                $table->integer('mem_balance');
            });
        }
    
        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            //
        }
    };