chore: src/modules/knowledge/entity/film-category.ts

This commit is contained in:
2026-07-01 17:44:56 +08:00
parent ad2adf07d9
commit 5aea466026
@@ -0,0 +1,21 @@
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
/**
* 知识库模块-电影分类
*/
@Entity('knowledge_film_category')
export class KnowledgeFilmCategoryEntity extends BaseEntity {
@Index()
@Column({ comment: '分类名称', length: 100 })
name: string;
@Column({ comment: '排序', default: 0 })
sort: number;
@Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
status: number;
@Column({ comment: '备注', nullable: true })
remark: string;
}