feat: curd

This commit is contained in:
luchang
2024-05-22 19:13:08 +08:00
parent 410bfc1e38
commit 74c77011ea
27 changed files with 316 additions and 166 deletions
+15 -1
View File
@@ -1 +1,15 @@
export class Banner {}
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity()
export class BannerEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
url: string;
@Column()
type: number;
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
createTime: Date;
}