Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fadffdf
authored
Nov 12, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加userid字段
parent
2dbe8e90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
database/migrations/2024_11_04_135741_create_patient_table.php
+6
-3
database/migrations/2024_11_04_220223_create_doctor_table.php
+1
-0
database/migrations/2024_11_04_224709_create_pharmacist_table.php
+1
-0
No files found.
database/migrations/2024_11_04_135741_create_patient_table.php
View file @
3fadffdf
...
@@ -14,10 +14,13 @@ public function up(): void
...
@@ -14,10 +14,13 @@ public function up(): void
Schema
::
create
(
'patient'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'patient'
,
function
(
Blueprint
$table
)
{
$table
->
comment
(
'问诊人'
);
$table
->
comment
(
'问诊人'
);
$table
->
bigIncrements
(
'id'
);
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
50
)
->
nullable
()
->
comment
(
'姓名'
);
$table
->
string
(
'name'
,
50
)
->
comment
(
'姓名'
);
$table
->
tinyInteger
(
'gender'
)
->
default
(
0
)
->
comment
(
'性别。[1=男性,2=女性,0=未知]'
);
$table
->
tinyInteger
(
'gender'
)
->
default
(
0
)
->
comment
(
'性别。[1=男性,2=女性,0=未知]'
);
$table
->
string
(
'id_card'
,
18
)
->
nullable
()
->
index
(
'idx_idcard'
)
->
comment
(
'身份证号'
);
$table
->
string
(
'id_card'
,
18
)
->
index
(
'idx_idcard'
)
->
comment
(
'身份证号'
);
$table
->
string
(
'mobile'
,
11
)
->
nullable
()
->
index
(
'idx_mobile'
)
->
comment
(
'手机号'
);
$table
->
string
(
'mobile'
,
11
)
->
index
(
'idx_mobile'
)
->
comment
(
'手机号'
);
$table
->
bigInteger
(
'user_id'
)
->
default
(
0
)
->
index
(
'idx_userid'
)
->
comment
(
'用户表ID'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
default
(
0
)
->
index
(
'idx_pharmacyid'
)
->
comment
(
'药店表ID'
);
$table
->
boolean
(
'is_default'
)
->
default
(
0
)
->
comment
(
'默认问诊人,用户添加的才需要设置[0=否,1=是]'
);
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
softDeletes
();
});
});
...
...
database/migrations/2024_11_04_220223_create_doctor_table.php
View file @
3fadffdf
...
@@ -32,6 +32,7 @@ public function up()
...
@@ -32,6 +32,7 @@ public function up()
$table
->
text
(
'introduction'
)
->
nullable
()
->
comment
(
'简介'
);
$table
->
text
(
'introduction'
)
->
nullable
()
->
comment
(
'简介'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'是否启用[0=未启用,1=启用]'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'是否启用[0=未启用,1=启用]'
);
$table
->
text
(
'signed_pic'
)
->
nullable
()
->
comment
(
'签名照'
);
$table
->
text
(
'signed_pic'
)
->
nullable
()
->
comment
(
'签名照'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
unique
(
'uk_userid'
)
->
comment
(
'用户表ID'
);
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
softDeletes
();
});
});
...
...
database/migrations/2024_11_04_224709_create_pharmacist_table.php
View file @
3fadffdf
...
@@ -25,6 +25,7 @@ public function up()
...
@@ -25,6 +25,7 @@ public function up()
$table
->
string
(
'physician_license'
)
->
comment
(
'执业资格证书'
);
$table
->
string
(
'physician_license'
)
->
comment
(
'执业资格证书'
);
$table
->
string
(
'signed_pic'
)
->
comment
(
'签名照'
);
$table
->
string
(
'signed_pic'
)
->
comment
(
'签名照'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'启用[0=未启用,1=启用]'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'启用[0=未启用,1=启用]'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
unique
(
'uk_userid'
)
->
comment
(
'用户表ID'
);
$table
->
timestamps
();
$table
->
timestamps
();
$table
->
softDeletes
();
$table
->
softDeletes
();
});
});
...
...
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