import {
  Column,
  Entity,
  Index,
  PrimaryColumn
} from 'typeorm';

@Entity('room_owners')
export class RoomOwnerEntity {
  @PrimaryColumn('text')
  roomId!: string;

  @PrimaryColumn('text')
  @Index()
  userId!: string;

  @Column('integer')
  savedAt!: number;
}
