feat: add name english for institution
This commit is contained in:
parent
abcb445b40
commit
74dbde34ea
3 changed files with 14 additions and 4 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- Added the required column `nameEN` to the `Institution` table without a default value. This is not possible if the table is not empty.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Institution" ADD COLUMN "nameEN" TEXT NOT NULL;
|
||||||
|
|
@ -930,10 +930,11 @@ model EmployeeOtherInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
model Institution {
|
model Institution {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
code String
|
code String
|
||||||
group String // Use for grouping, but not use relation
|
group String // Use for grouping, but not use relation
|
||||||
name String
|
name String
|
||||||
|
nameEN String
|
||||||
|
|
||||||
address String
|
address String
|
||||||
addressEN String
|
addressEN String
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ import { queryOrNot } from "../utils/relation";
|
||||||
|
|
||||||
type InstitutionPayload = {
|
type InstitutionPayload = {
|
||||||
name: string;
|
name: string;
|
||||||
|
nameEN: string;
|
||||||
|
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue