import { GroupPermission } from './group-permission';
import { User } from './user';

export interface Group {
  ID: number;
  issuerID: number;
  issuer?: User;
  name: string;
  users?: User[];
  permissions?: GroupPermission[];
  createdAt: string; // ISO String
  updatedAt: string; // ISO String
  deletedAt: string; // ISO String
}

export interface GroupForm {
  ID: number;
  name: string;
  permissions: number[];
}
