export type BackofficeRole = 'super_admin' | 'admin' | 'viewer';

export interface BackofficeUser {
	id: number;
	nama: string;
	email: string;
	password: string;
	role: BackofficeRole;
	is_aktif: boolean;
	created_at: Date;
	updated_at: Date;
}

export interface BackofficeUserListItem {
	id: number;
	nama: string;
	email: string;
	role: BackofficeRole;
	is_aktif: boolean;
	created_at: Date;
	updated_at: Date;
}

export interface BackofficeSession {
	id: number;
	nama: string;
	email: string;
	role: BackofficeRole;
}

export interface CreateBackofficeUserInput {
	nama: string;
	email: string;
	password: string;
	role: BackofficeRole;
}

export interface UpdateBackofficeUserInput {
	id: number;
	nama: string;
	email: string;
	role: BackofficeRole;
	is_aktif: boolean;
	password?: string;
}
