chatbridge/server/entities/model.entity.ts

20 lines
327 B
TypeScript
Raw Normal View History

import {
CreateDateColumn,
UpdateDateColumn,
PrimaryGeneratedColumn,
BaseEntity,
} from 'typeorm';
export default abstract class Model extends BaseEntity {
@PrimaryGeneratedColumn('uuid')
id: string;
@CreateDateColumn()
created_at: Date;
@UpdateDateColumn()
updated_at: Date;
2023-07-25 01:40:22 +00:00
}