import {
  Table,
  Model,
  Column,
  DataType,
  CreatedAt,
  UpdatedAt,
} from 'sequelize-typescript';

@Table({ tableName: 'customer_RegisteredSystem' })
export class CustomerRegisteredSystemModel extends Model {
  @Column({ primaryKey: true, allowNull: false, type: DataType.STRING(5) })
  SystemCode: string;

  @Column({ allowNull: true, type: DataType.STRING(20) })
  SystemName: string;

  @Column({ allowNull: false, type: DataType.STRING(1) })
  IsActiveYN: string;

  @Column({ allowNull: false, type: DataType.STRING(1) })
  WantsSyncYN: string;

  @Column({ allowNull: false, type: DataType.TEXT })
  WebhookURL: string;

  @CreatedAt
  CreatedAt: Date;

  @UpdatedAt
  UpdatedAt: Date;
}
