Commit 126da5ca by 杨树贤

数据库迁移文件

parent 87d3bc28
......@@ -45,4 +45,4 @@ PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
START_IFRAME_TAB=true
START_IFRAME_TAB=false
......@@ -286,29 +286,29 @@ return [
'connection' => '',
// User tables and model.
'users_table' => 'lie_admin_users',
'users_table' => 'admin_users',
'users_model' => Dcat\Admin\Models\Administrator::class,
// Role table and model.
'roles_table' => 'lie_admin_roles',
'roles_table' => 'admin_roles',
'roles_model' => Dcat\Admin\Models\Role::class,
// Permission table and model.
'permissions_table' => 'lie_admin_permissions',
'permissions_table' => 'admin_permissions',
'permissions_model' => Dcat\Admin\Models\Permission::class,
// Menu table and model.
'menu_table' => 'lie_admin_menu',
'menu_table' => 'admin_menu',
'menu_model' => Dcat\Admin\Models\Menu::class,
// Pivot table for table above.
'role_users_table' => 'lie_admin_role_users',
'role_permissions_table' => 'lie_admin_role_permissions',
'role_menu_table' => 'lie_admin_role_menu',
'permission_menu_table' => 'lie_admin_permission_menu',
'settings_table' => 'lie_admin_settings',
'extensions_table' => 'lie_admin_extensions',
'extension_histories_table' => 'lie_admin_extension_histories',
'role_users_table' => 'admin_role_users',
'role_permissions_table' => 'admin_role_permissions',
'role_menu_table' => 'admin_role_menu',
'permission_menu_table' => 'admin_permission_menu',
'settings_table' => 'admin_settings',
'extensions_table' => 'admin_extensions',
'extension_histories_table' => 'admin_extension_histories',
],
/*
......@@ -320,7 +320,7 @@ return [
*/
'layout' => [
// default, blue, blue-light, green
'color' => 'default',
'color' => 'layui-green',
// sidebar-separate
'body_class' => [],
......@@ -335,7 +335,7 @@ return [
'dark_mode_switch' => true,
// bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
'navbar_color' => 'bg-dark',
'navbar_color' => '',
],
/*
......
......@@ -54,7 +54,7 @@ return [
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'lie_',
'prefix' => 'sem_',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
......
......@@ -18,7 +18,7 @@ class CreateUsersTable extends Migration
$table->string('name', 50)->comment('用户名')->default('');
$table->string('email', 100)->unique()->comment('邮箱')->default('');
$table->timestamp('email_verified_at')->nullable()->comment('邮箱校验时间');
$table->string('password', 50)->comment('密码')->default('');
$table->string('password', 255)->comment('密码')->default('');
$table->string('phone', 50)->comment('手机号码')->default('');
$table->rememberToken()->nullable(false)->comment('记住登陆token')->default('');
$table->tinyInteger('account_properties')->unsigned()->default(1)->comment('账号属性,1是个人,2是企业');
......
......@@ -14,7 +14,7 @@ class CreateUserAddressTable extends Migration
public function up()
{
Schema::create('user_address', function (Blueprint $table) {
$table->integer('id')->primary()->unsigned()->comment('主键ID');
$table->integer('id')->primary()->autoIncrement()->unsigned()->comment('主键ID');
$table->integer('user_id')->unsigned()->comment('用户id')->default(0);
$table->string('first_name', 100)->comment('名字')->default('');
$table->string('last_name', 100)->comment('姓氏')->default('');
......
......@@ -14,7 +14,7 @@ class CreateFrqTable extends Migration
public function up()
{
Schema::create('frq', function (Blueprint $table) {
$table->integer('id')->primary()->unsigned()->comment('主键ID');
$table->integer('id')->primary()->autoIncrement()->unsigned()->comment('主键ID');
$table->integer('user_id')->unsigned()->comment('用户id')->default(0);
$table->string('frq_sn', 20)->comment('询价明细编号')->default('');
$table->string('sku_name', 100)->comment('型号')->default('');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment