mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
PHTML
44 lines
1.5 KiB
PHTML
5 months ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
return new class extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*/
|
||
|
public function up(): void
|
||
|
{
|
||
|
Schema::create('customers', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->string('name',255)->nullable()->default(null);
|
||
|
$table->string('email')->unique()->nullable()->default(null);
|
||
|
$table->timestamp('email_verified_at')->nullable()->default(null);
|
||
|
$table->string('password')->nullable()->default(null);
|
||
|
|
||
|
$table->unsignedInteger('state')->nullable()->default(null);
|
||
|
$table->unsignedInteger('city')->nullable()->default(null);
|
||
|
$table->string('mobile',15)->unique()->nullable()->default(null);
|
||
|
$table->string('address',2048)->nullable()->default(null);
|
||
|
$table->string('postal_code',15)->nullable()->default(null);
|
||
|
$table->string('sms',10)->nullable()->default(null);
|
||
|
$table->string('code',10)->nullable()->default(null);
|
||
|
$table->boolean('colleague')->default(false);
|
||
|
$table->text('description')->default(null)->nullable();
|
||
|
$table->unsignedBigInteger('credit')->default(0);
|
||
|
$table->rememberToken();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('customers');
|
||
|
}
|
||
|
};
|