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
bfa0058a
authored
Nov 22, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用和userid索引
parent
0f144f3d
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
8 additions
and
321 deletions
+8
-321
database/migrations/2024_11_04_000511_create_drug_table.php
+7
-1
database/migrations/2024_11_04_220223_create_doctor_table.php
+1
-1
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
+0
-26
database/migrations/2024_11_18_114538_add_business_to_pharmacy_table.php
+0
-26
database/migrations/2024_11_18_143124_add_default_to_pharmacist_table.php
+0
-26
database/migrations/2024_11_18_143545_add_datetime_to_prescription_table.php
+0
-26
database/migrations/2024_11_18_155308_add_prescription_pic_eseal_to_prescription_table.php
+0
-26
database/migrations/2024_11_18_190511_add_open_source_to_prescription_table.php
+0
-26
database/migrations/2024_11_19_105615_add_is_auto_to_doctor_table.php
+0
-26
database/migrations/2024_11_19_110550_add_is_auto_to_pharmacy_table.php
+0
-26
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
+0
-26
database/migrations/2024_11_20_153412_add_doctor_introduction_to_prescription_table.php
+0
-26
database/migrations/2024_11_20_162040_add_encoding_to_diagnosis_table.php
+0
-26
database/migrations/2024_11_21_173217_add_somefield_to_drug_table.php
+0
-33
No files found.
database/migrations/2024_11_04_000511_create_drug_table.php
View file @
bfa0058a
...
...
@@ -17,7 +17,7 @@ public function up(): void
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'name'
,
64
)
->
index
(
'idx_name'
)
->
comment
(
'药品名称'
);
$table
->
string
(
'code'
,
64
)
->
index
(
'idx_code'
)
->
comment
(
'简码'
);
$table
->
string
(
'standard_code'
,
64
)
->
unique
(
'uk
_standardcode'
)
->
comment
(
'本位码'
);
$table
->
string
(
'standard_code'
,
64
)
->
index
(
'idx
_standardcode'
)
->
comment
(
'本位码'
);
$table
->
string
(
'unit'
,
20
)
->
nullable
()
->
comment
(
'单位'
);
$table
->
string
(
'spec'
,
128
)
->
comment
(
'包装规格'
);
$table
->
string
(
'dosage_form'
,
128
)
->
comment
(
'剂型'
);
...
...
@@ -27,6 +27,12 @@ public function up(): void
$table
->
boolean
(
'is_rx'
)
->
default
(
false
)
->
comment
(
'是否处方药'
);
$table
->
boolean
(
'is_si'
)
->
default
(
false
)
->
comment
(
'是否医保药品'
);
$table
->
integer
(
'product_id'
)
->
default
(
0
)
->
comment
(
'君元ID'
);
$table
->
string
(
'preparation_pec'
)
->
default
(
''
)
->
comment
(
'制剂规格'
);
$table
->
string
(
'product_name'
,
64
)
->
default
(
''
)
->
comment
(
'商品名'
);
$table
->
string
(
'mnemonic'
,
64
)
->
default
(
''
)
->
comment
(
'助记码'
);
$table
->
string
(
'category_code'
,
32
)
->
default
(
''
)
->
comment
(
'分类码'
);
$table
->
string
(
'category_name'
,
32
)
->
default
(
''
)
->
comment
(
'分类名称'
);
$table
->
boolean
(
'is_foreign'
)
->
default
(
false
)
->
comment
(
'是否进口药'
);
$table
->
timestamps
();
$table
->
softDeletes
();
...
...
database/migrations/2024_11_04_220223_create_doctor_table.php
View file @
bfa0058a
...
...
@@ -31,7 +31,7 @@ public function up(): void
$table
->
text
(
'introduction'
)
->
nullable
()
->
comment
(
'简介'
);
$table
->
boolean
(
'status'
)
->
default
(
0
)
->
comment
(
'是否启用[0=未启用,1=启用]'
);
$table
->
longText
(
'signed_pic'
)
->
nullable
()
->
comment
(
'签名照'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
unique
(
'uk_userid'
)
->
comment
(
'用户表ID'
);
$table
->
bigInteger
(
'user_id'
)
->
nullable
()
->
comment
(
'用户表ID'
);
$table
->
boolean
(
'is_auto'
)
->
default
(
1
)
->
comment
(
'是否自动开方[0=否,1=是]'
);
$table
->
timestamps
();
...
...
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_18_114538_add_business_to_pharmacy_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_18_143124_add_default_to_pharmacist_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'pharmacist'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'pharmacist'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_18_143545_add_datetime_to_prescription_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_18_155308_add_prescription_pic_eseal_to_prescription_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_18_190511_add_open_source_to_prescription_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_19_105615_add_is_auto_to_doctor_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'doctor'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'doctor'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_19_110550_add_is_auto_to_pharmacy_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_19_155001_add_is_abnormal_to_prescription_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_20_153412_add_doctor_introduction_to_prescription_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'prescription'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_20_162040_add_encoding_to_diagnosis_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'diagnosis'
,
function
(
Blueprint
$table
)
{});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'diagnosis'
,
function
(
Blueprint
$table
)
{
//
});
}
};
database/migrations/2024_11_21_173217_add_somefield_to_drug_table.php
deleted
100644 → 0
View file @
0f144f3d
<?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
::
table
(
'drug'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'preparation_pec'
)
->
default
(
''
)
->
comment
(
'制剂规格'
);
$table
->
string
(
'product_name'
,
64
)
->
default
(
''
)
->
comment
(
'商品名'
);
$table
->
string
(
'mnemonic'
,
64
)
->
default
(
''
)
->
comment
(
'助记码'
);
$table
->
string
(
'category_code'
,
32
)
->
default
(
''
)
->
comment
(
'分类码'
);
$table
->
string
(
'category_name'
,
32
)
->
default
(
''
)
->
comment
(
'分类名称'
);
$table
->
boolean
(
'is_foreign'
)
->
default
(
false
)
->
comment
(
'是否进口药'
);
});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'drug'
,
function
(
Blueprint
$table
)
{
//
});
}
};
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