import { Column, Entity } from 'typeorm';
import { BaseModel } from './base.model';
import { STATUS } from 'src/core/strings/constants/base.constants';
import { BaseStatusEntity } from '../../domain/entities/base-status.entity';

@Entity()
export abstract class BaseStatusModel<Entity>
  extends BaseModel<Entity>
  implements BaseStatusEntity
{
  @Column('enum', { name: 'status', enum: STATUS, default: STATUS.DRAFT })
  status: STATUS;
}
