2023-07-24 20:27:36 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
2023-07-24 20:27:36 +00:00
|
|
|
}
|