First commit
This commit is contained in:
33
api/src/skill/skill-category.entity.ts
Normal file
33
api/src/skill/skill-category.entity.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, JoinColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
||||
import { SkillEntity } from 'src/skill/skill.entity';
|
||||
import { SkillLevelEntity } from 'src/skill/skill-level.entity';
|
||||
|
||||
@Entity({ name: 'skill_categories' })
|
||||
export class SkillCategoryEntity {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@CreateDateColumn()
|
||||
created: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
createdBy: string;
|
||||
|
||||
@UpdateDateColumn()
|
||||
updated: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
updatedBy: string;
|
||||
|
||||
@DeleteDateColumn()
|
||||
deleted: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
deletedBy: string;
|
||||
|
||||
@OneToMany(() => SkillEntity, (skill: SkillEntity) => skill.name)
|
||||
skills: SkillEntity[];
|
||||
}
|
||||
Reference in New Issue
Block a user