import {
  Table,
  Column,
  CreatedAt,
  UpdatedAt,
  Model,
  PrimaryKey,
  AutoIncrement
} from "sequelize-typescript";

@Table
class SettingTicket extends Model<SettingTicket> {
  @PrimaryKey
  @AutoIncrement
  @Column
  id: number;

  @Column
  message: string;

  @Column
  startTime: Date;

  @Column
  endTime: Date;

  @Column
  value: string;

  @Column
  key: string;

  @Column
  number: string;

  @CreatedAt
  createdAt: Date;

  @UpdatedAt
  updatedAt: Date;
}

export default SettingTicket;
