import { DB_SCHEMA } from 'src/utils';
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';

@Index('course_id', ['course_id', 'studylevelId'], {})
@Entity('course_master_studylevelinfo', { schema: DB_SCHEMA })
export class CourseMasterStudylevelinfoEntity {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id' })
  id: number;

  @Column('mediumint', { name: 'course_id' })
  course_id: number;

  @Column('smallint', { name: 'studylevelId' })
  studylevelId: number;

  @Column('timestamp', {
    name: 'createdOn',
    default: () => 'CURRENT_TIMESTAMP',
  })
  createdOn: Date;

  @Column('timestamp', {
    name: 'modifiedOn',
    default: () => 'CURRENT_TIMESTAMP',
  })
  modifiedOn: Date;
}
