From 072990f6eda5ed745647c1c3e5ec44425d2a266c Mon Sep 17 00:00:00 2001 From: prashant-webkul Date: Fri, 20 Jul 2018 20:45:21 +0530 Subject: [PATCH] customer migrations and models --- ...18_07_20_151049_create_customers_table.php | 31 +++++++++++++++++++ ...20_151103_create_customers_group_table.php | 31 +++++++++++++++++++ ..._151120_create_customers_address_table.php | 31 +++++++++++++++++++ .../Customer/src/Models/CustomerGroups.php | 9 ++++++ .../Customer/src/Models/CustomersAddress.php | 9 ++++++ .../src/Providers/CustomerServiceProvider.php | 4 ++- 6 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151049_create_customers_table.php create mode 100644 packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151103_create_customers_group_table.php create mode 100644 packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151120_create_customers_address_table.php create mode 100644 packages/Webkul/Customer/src/Models/CustomerGroups.php create mode 100644 packages/Webkul/Customer/src/Models/CustomersAddress.php diff --git a/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151049_create_customers_table.php b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151049_create_customers_table.php new file mode 100644 index 000000000..9dc55266d --- /dev/null +++ b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151049_create_customers_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('customers'); + } +} diff --git a/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151103_create_customers_group_table.php b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151103_create_customers_group_table.php new file mode 100644 index 000000000..43919ebf4 --- /dev/null +++ b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151103_create_customers_group_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('customers_group'); + } +} diff --git a/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151120_create_customers_address_table.php b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151120_create_customers_address_table.php new file mode 100644 index 000000000..11862d531 --- /dev/null +++ b/packages/Webkul/Customer/src/Database/Migrations/2018_07_20_151120_create_customers_address_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('customers_address'); + } +} diff --git a/packages/Webkul/Customer/src/Models/CustomerGroups.php b/packages/Webkul/Customer/src/Models/CustomerGroups.php new file mode 100644 index 000000000..919233cf9 --- /dev/null +++ b/packages/Webkul/Customer/src/Models/CustomerGroups.php @@ -0,0 +1,9 @@ +