UNPKG

@defikitdotnet/education-module-ai

Version:
25 lines (24 loc) 796 B
import { BaseRepository } from "./BaseRepository"; import { Student } from "../models/Student"; import { SqliteAdapter } from "../database/SqliteAdapter"; export declare class StudentRepository extends BaseRepository<Student> { constructor(dbAdapter: SqliteAdapter); /** * Create a new student */ create(data: Omit<Student, "id">): Promise<Student>; /** * Update an existing student */ update(id: string, data: Partial<Omit<Student, 'passwordHash' | 'id'>> & { password?: string; }): Promise<Student | null>; /** * Find student by email */ findByEmail(email: string): Promise<Student | null>; /** * Verify student credentials */ verifyCredentials(email: string, password: string): Promise<Student | null>; }