import { Column, Entity, ManyToOne } from "typeorm";
import { BaseEntity } from "./base.entity";
import { Group } from "./group.entity";

@Entity('group_invites')
export class GroupInvite extends BaseEntity {
  @ManyToOne(() => Group)
  group: Group;

  @Column()
  email: string;

  @Column({ default: false })
  accepted: boolean;
}