Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
126da5ca
authored
Nov 01, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据库迁移文件
parent
87d3bc28
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
.env
config/admin.php
config/database.php
database/migrations/2014_10_12_000000_create_users_table.php
database/migrations/2022_10_31_074424_create_user_address_table.php
database/migrations/2022_10_31_081806_create_frq_table.php
.env
View file @
126da5ca
...
...
@@ -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=
tru
e
START_IFRAME_TAB=
fals
e
config/admin.php
View file @
126da5ca
...
...
@@ -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'
=>
''
,
],
/*
...
...
config/database.php
View file @
126da5ca
...
...
@@ -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
,
...
...
database/migrations/2014_10_12_000000_create_users_table.php
View file @
126da5ca
...
...
@@ -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是企业'
);
...
...
database/migrations/2022_10_31_074424_create_user_address_table.php
View file @
126da5ca
...
...
@@ -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
(
''
);
...
...
database/migrations/2022_10_31_081806_create_frq_table.php
View file @
126da5ca
...
...
@@ -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
(
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment