update,
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
'use client';
|
||||
|
||||
// RULES: sorting direction for teacher lists
|
||||
export type SortDir = 'asc' | 'desc';
|
||||
|
||||
// RULES: core teacher data structure
|
||||
export interface Teacher {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -14,6 +16,7 @@ export interface Teacher {
|
||||
updatedAt?: Date;
|
||||
}
|
||||
|
||||
// RULES: form data structure for creating new teacher
|
||||
export interface CreateFormProps {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -36,6 +39,7 @@ export interface CreateFormProps {
|
||||
// status?: 'pending' | 'active' | 'blocked';
|
||||
}
|
||||
|
||||
// RULES: form data structure for editing existing teacher
|
||||
export interface EditFormProps {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -57,6 +61,8 @@ export interface EditFormProps {
|
||||
// quota?: number;
|
||||
// status?: 'pending' | 'active' | 'blocked';
|
||||
}
|
||||
|
||||
// RULES: filter props for teacher search and filtering
|
||||
export interface CustomersFiltersProps {
|
||||
filters?: Filters;
|
||||
sortDir?: SortDir;
|
||||
|
Reference in New Issue
Block a user