import { Group } from './group';

export interface User {
  ID: number;
  email: string;
  passwordHash: string;
  passwordLength: number;
  realName: string;
  groupID?: number;
  group?: Group;
  isRequiredToSetPassword: boolean;
  isActive: boolean;
  lastLogin: string; // ISO String
  createdAt: string; // ISO String
  updatedAt: string; // ISO String
  deletedAt: string; // ISO String
}

export interface UserForm {
  ID: number;
  email: string;
  realName: string;
  groupID: number;
}
