import { Entity, PrimaryKey, Property, Unique } from '@mikro-orm/decorators/legacy';

@Entity({ tableName: 'meeting_user' })
export class MeetingUser {
  @PrimaryKey({ type: 'number' })
  public id!: number;

  @Unique()
  @Property({ type: 'bigint', fieldName: 'long_user_Id' })
  public longUserId!: number;

  @Property({ type: 'date' })
  public createdAt: Date = new Date();
}
