add period at ProfileAssessment
This commit is contained in:
parent
d46c4cc0a8
commit
e208b1ef1b
2 changed files with 27 additions and 0 deletions
|
|
@ -30,6 +30,14 @@ export class ProfileAssessment extends EntityBase {
|
|||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รอบการประเมิน",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
period: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
|
|
@ -104,6 +112,7 @@ export class ProfileAssessment extends EntityBase {
|
|||
export class CreateProfileAssessment {
|
||||
profileId: string | null;
|
||||
name: string | null;
|
||||
period: string | null;
|
||||
date: Date | null;
|
||||
point1: number | null;
|
||||
point1Total: number | null;
|
||||
|
|
@ -116,6 +125,7 @@ export class CreateProfileAssessment {
|
|||
export class CreateProfileEmployeeAssessment {
|
||||
profileEmployeeId: string | null;
|
||||
name: string | null;
|
||||
period: string | null;
|
||||
date: Date | null;
|
||||
point1: number | null;
|
||||
point1Total: number | null;
|
||||
|
|
@ -127,6 +137,7 @@ export class CreateProfileEmployeeAssessment {
|
|||
|
||||
export type UpdateProfileAssessment = {
|
||||
name?: string | null;
|
||||
period?: string | null;
|
||||
date?: Date | null;
|
||||
point1?: number | null;
|
||||
point1Total?: number | null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateProfileAssessmentAddperiod1738644026886 implements MigrationInterface {
|
||||
name = 'UpdateProfileAssessmentAddperiod1738644026886'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`CREATE TABLE \`IMPORT_ORG\` (\`id\` int NOT NULL AUTO_INCREMENT, \`DEPARTMENT_CODE\` text NULL, \`DIVISION_CODE\` text NULL, \`SECTION_CODE\` text NULL, \`JOB_CODE\` text NULL, \`orgRoot\` text NULL, \`orgChild1\` text NULL, \`orgChild2\` text NULL, \`orgChild3\` text NULL, \`MISCODE\` text NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
||||
await queryRunner.query(`ALTER TABLE \`profileAssessment\` ADD \`period\` varchar(255) NULL COMMENT 'รอบการประเมิน'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileAssessment\` DROP COLUMN \`period\``);
|
||||
await queryRunner.query(`DROP TABLE \`IMPORT_ORG\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue