Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit fe60a604 authored by 64160295's avatar 64160295
Browse files

data member

parent 7814c4ad
No related branches found
No related tags found
1 merge request!12proof tranfer update
...@@ -17,28 +17,27 @@ public function up() ...@@ -17,28 +17,27 @@ public function up()
Schema::create('Member', function (Blueprint $table){ Schema::create('Member', function (Blueprint $table){
$table->id(); $table->id();
$table->string('mem_id_card'); $table->string('mem_id_card');
$table->string('mem_prefix_th'); $table->string('mem_prefix_th')->nullable();
$table->string('mem_prefix_en'); $table->string('mem_prefix_en')->nullable();
$table->string('mem_fname_th'); $table->string('mem_fname_th')->nullable();
$table->string('mem_fname_en'); $table->string('mem_fname_en')->nullable();
$table->string('mem_lname_th'); $table->string('mem_lname_th')->nullable();
$table->string('mem_lname_en'); $table->string('mem_lname_en')->nullable();
$table->date('mem_birthday'); $table->date('mem_birthday')->nullable();
$table->string('mem_lawyer_type'); $table->string('mem_lawyer_type')->nullable();
$table->string('mem_license'); $table->string('mem_license')->nullable();
$table->string('mem_lawyer_affiliation'); $table->string('mem_lawyer_affiliation')->nullable();
$table->string('mem_lawyer_relation'); $table->string('mem_lawyer_relation')->nullable();
$table->string('mem_email')->unique(); $table->string('mem_email')->unique()->nullable();
$table->string('mem_phone_number', 10); $table->string('mem_phone_number', 10)->nullable();
$table->integer('mem_type')->default(0); $table->integer('mem_type')->default(1);
$table->integer('mem_status')->default(0); $table->integer('mem_status')->default(0);
$table->integer('mem_balance')->nullable(); $table->integer('mem_balance')->nullable();
$table->string('password')->nullable(false); $table->string('password')->nullable(false);
$table->string('address_id'); $table->string('address_id')->nullable();
}); });
DB::table('users')->insert([
DB::table('Member')->insert( [
array(
'mem_id_card' => '123456789', 'mem_id_card' => '123456789',
'mem_prefix_th' => 'นาย', 'mem_prefix_th' => 'นาย',
'mem_prefix_en' => 'Mr.', 'mem_prefix_en' => 'Mr.',
...@@ -48,6 +47,8 @@ public function up() ...@@ -48,6 +47,8 @@ public function up()
'mem_lname_th' => 'admin', 'mem_lname_th' => 'admin',
'mem_lname_en' => 'admin', 'mem_lname_en' => 'admin',
'mem_lawyer_type' => '1', 'mem_lawyer_type' => '1',
'mem_type' => '0',
'mem_status' => '1',
'mem_birthday' => '2023-5-1', 'mem_birthday' => '2023-5-1',
'mem_license' => 'aaa', 'mem_license' => 'aaa',
'mem_lawyer_affiliation' => 'aaaa', 'mem_lawyer_affiliation' => 'aaaa',
...@@ -57,11 +58,54 @@ public function up() ...@@ -57,11 +58,54 @@ public function up()
'password' => 'admin', 'password' => 'admin',
'address_id' => '1' 'address_id' => '1'
) ],
); [
'mem_id_card' => '1234567890',
'mem_prefix_th' => 'นาย',
'mem_prefix_en' => 'Mr.',
'mem_prefix_th' => 'นาย',
'mem_fname_th' => 'user',
'mem_fname_en' => 'user',
'mem_lname_th' => 'user',
'mem_lname_en' => 'user',
'mem_lawyer_type' => '1',
'mem_status' => '1',
'mem_birthday' => '2023-5-1',
'mem_license' => 'aaa',
'mem_lawyer_affiliation' => 'aaaa',
'mem_lawyer_relation' => 'aaa',
'mem_email' => 'user@ivsoft.com',
'mem_phone_number' => '09999999',
'password' => 'user',
'address_id' => '1'
],
[
'mem_id_card' => '1234567891',
'mem_prefix_th' => 'นาย',
'mem_prefix_en' => 'Mr.',
'mem_prefix_th' => 'นาย',
'mem_fname_th' => 'user',
'mem_fname_en' => 'user',
'mem_lname_th' => 'user',
'mem_lname_en' => 'user',
'mem_lawyer_type' => '1',
'mem_status' => '1',
'mem_birthday' => '2023-5-1',
'mem_license' => 'aaa',
'mem_lawyer_affiliation' => 'aaaa',
'mem_lawyer_relation' => 'aaa',
'mem_email' => 'user@ivsoft.com',
'mem_phone_number' => '09999999',
'password' => 'register',
'address_id' => '1'
],
]);
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment