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

@Entity('release_notes_users', { schema: DB_SCHEMA })
export class ReleaseNotesUsers {
  @PrimaryGeneratedColumn({ type: 'int', name: 'release_notes_user_id' })
  release_notes_user_id: number;

  @Column('int', { name: 'release_id' })
  release_id: number;

  @Column('int', { name: 'user_id' })
  user_id: number;

  @Column('tinyint', { name: 'visible', width: 1 })
  visible: boolean;

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

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