feat: add name english for institution

This commit is contained in:
Methapon Metanipat 2024-11-07 16:59:26 +07:00
parent abcb445b40
commit 74dbde34ea
3 changed files with 14 additions and 4 deletions

View file

@ -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;

View file

@ -930,10 +930,11 @@ model EmployeeOtherInfo {
}
model Institution {
id String @id @default(cuid())
code String
group String // Use for grouping, but not use relation
name String
id String @id @default(cuid())
code String
group String // Use for grouping, but not use relation
name String
nameEN String
address String
addressEN String

View file

@ -19,6 +19,7 @@ import { queryOrNot } from "../utils/relation";
type InstitutionPayload = {
name: string;
nameEN: string;
code: string;