690325:2132 Fixing Naming convention missunderstand #01
This commit is contained in:
@@ -12,19 +12,19 @@ import {
|
||||
import { Project } from '../../project/entities/project.entity';
|
||||
|
||||
@Entity('tags')
|
||||
@Unique('ux_tag_project', ['project_id', 'tag_name'])
|
||||
@Unique('ux_tag_project', ['projectId', 'tagName'])
|
||||
export class Tag {
|
||||
@PrimaryGeneratedColumn()
|
||||
id!: number; // เพิ่ม !
|
||||
|
||||
@Column({ type: 'int', nullable: true })
|
||||
project_id!: number | null; // เพิ่ม !
|
||||
projectId!: number | null; // เพิ่ม !
|
||||
|
||||
@Column({ length: 100 })
|
||||
tag_name!: string; // เพิ่ม !
|
||||
tagName!: string; // เพิ่ม !
|
||||
|
||||
@Column({ length: 30, default: 'default' })
|
||||
color_code!: string; // เพิ่ม !
|
||||
colorCode!: string; // เพิ่ม !
|
||||
|
||||
@Column({ type: 'text', nullable: true })
|
||||
description!: string | null; // เพิ่ม !
|
||||
@@ -35,14 +35,14 @@ export class Tag {
|
||||
project?: Project;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at!: Date; // เพิ่ม !
|
||||
createdAt!: Date; // เพิ่ม !
|
||||
|
||||
@UpdateDateColumn()
|
||||
updated_at!: Date; // เพิ่ม !
|
||||
updatedAt!: Date; // เพิ่ม !
|
||||
|
||||
@Column({ type: 'int', nullable: true })
|
||||
created_by!: number | null; // เพิ่ม !
|
||||
createdBy!: number | null; // เพิ่ม !
|
||||
|
||||
@DeleteDateColumn()
|
||||
deleted_at!: Date | null; // เพิ่ม !
|
||||
deletedAt!: Date | null; // เพิ่ม !
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user