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
91a46573
authored
Nov 11, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处方单增加冗余字段
parent
5348252e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
database/migrations/2024_11_10_233001_create_prescription_table.php
+8
-0
No files found.
database/migrations/2024_11_10_233001_create_prescription_table.php
View file @
91a46573
...
@@ -17,6 +17,9 @@ public function up(): void
...
@@ -17,6 +17,9 @@ public function up(): void
$table
->
string
(
'prescription_umber'
,
64
)
->
nullable
()
->
comment
(
'处方单编号'
);
$table
->
string
(
'prescription_umber'
,
64
)
->
nullable
()
->
comment
(
'处方单编号'
);
$table
->
tinyInteger
(
'status'
)
->
comment
(
'审方状态[0=待开方,1=待审方,2=审方成功]'
);
$table
->
tinyInteger
(
'status'
)
->
comment
(
'审方状态[0=待开方,1=待审方,2=审方成功]'
);
$table
->
bigInteger
(
'user_id'
)
->
default
(
0
)
->
comment
(
'用户表ID。药店添加则为0'
);
$table
->
bigInteger
(
'patient_id'
)
->
default
(
0
)
->
comment
(
'问诊人表ID'
);
$table
->
string
(
'patient_name'
,
50
)
->
comment
(
'问诊人姓名'
);
$table
->
string
(
'patient_name'
,
50
)
->
comment
(
'问诊人姓名'
);
$table
->
integer
(
'patient_age'
)
->
default
(
0
)
->
comment
(
'问诊人年龄'
);
$table
->
integer
(
'patient_age'
)
->
default
(
0
)
->
comment
(
'问诊人年龄'
);
$table
->
tinyInteger
(
'patient_gender'
)
->
default
(
0
)
->
comment
(
'问诊人性别。[1=男性,2=女性,0=未知]'
);
$table
->
tinyInteger
(
'patient_gender'
)
->
default
(
0
)
->
comment
(
'问诊人性别。[1=男性,2=女性,0=未知]'
);
...
@@ -33,6 +36,7 @@ public function up(): void
...
@@ -33,6 +36,7 @@ public function up(): void
$table
->
string
(
'doctor_department'
,
128
)
->
nullable
()
->
comment
(
'医师科室'
);
$table
->
string
(
'doctor_department'
,
128
)
->
nullable
()
->
comment
(
'医师科室'
);
$table
->
string
(
'doctor_title'
,
64
)
->
nullable
()
->
comment
(
'医师职称'
);
$table
->
string
(
'doctor_title'
,
64
)
->
nullable
()
->
comment
(
'医师职称'
);
$table
->
string
(
'doctor_license_no'
,
30
)
->
nullable
()
->
comment
(
'医师执照编号'
);
$table
->
string
(
'doctor_license_no'
,
30
)
->
nullable
()
->
comment
(
'医师执照编号'
);
$table
->
text
(
'doctor_signed_pic'
)
->
nullable
()
->
comment
(
'医师签名照'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
default
(
0
)
->
comment
(
'药店表ID'
);
$table
->
bigInteger
(
'pharmacy_id'
)
->
default
(
0
)
->
comment
(
'药店表ID'
);
$table
->
string
(
'pharmacy_name'
,
64
)
->
nullable
()
->
comment
(
'药店名称'
);
$table
->
string
(
'pharmacy_name'
,
64
)
->
nullable
()
->
comment
(
'药店名称'
);
...
@@ -40,6 +44,10 @@ public function up(): void
...
@@ -40,6 +44,10 @@ public function up(): void
$table
->
bigInteger
(
'pharmacist_id'
)
->
default
(
0
)
->
comment
(
'药师表ID'
);
$table
->
bigInteger
(
'pharmacist_id'
)
->
default
(
0
)
->
comment
(
'药师表ID'
);
$table
->
string
(
'pharmacist_name'
,
50
)
->
nullable
()
->
comment
(
'药师姓名'
);
$table
->
string
(
'pharmacist_name'
,
50
)
->
nullable
()
->
comment
(
'药师姓名'
);
$table
->
string
(
'pharmacist_license_number'
,
32
)
->
nullable
()
->
comment
(
'药师执照编号'
);
$table
->
string
(
'pharmacist_license_number'
,
32
)
->
nullable
()
->
comment
(
'药师执照编号'
);
$table
->
text
(
'pharmacist_signed_pic'
)
->
nullable
()
->
comment
(
'药师签名照'
);
$table
->
string
(
'prescription_pic'
)
->
nullable
()
->
comment
(
'处方单图片地址'
);
$table
->
boolean
(
'is_voided'
)
->
default
(
0
)
->
comment
(
'作废状态[0=未作废,1=作废]'
);
$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