AI Implementation feature(859): Admin Area General Settings and Categories (#21)
This commit was merged in pull request #21.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Entity, PrimaryColumn, Column, Index } from 'typeorm';
|
||||
|
||||
@Entity('category')
|
||||
@Index('uq_category_abbreviation', ['abbreviation'], { unique: true })
|
||||
export class CategoryEntity {
|
||||
@PrimaryColumn('text')
|
||||
id!: string;
|
||||
@@ -20,4 +21,10 @@ export class CategoryEntity {
|
||||
|
||||
@Column('text', { name: 'icon_path', default: '' })
|
||||
iconPath!: string;
|
||||
}
|
||||
|
||||
@Column('text', { name: 'created_at', default: '' })
|
||||
createdAt!: string;
|
||||
|
||||
@Column('text', { name: 'updated_at', default: '' })
|
||||
updatedAt!: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user