import { Student } from '../../entities/users/student.entity.js';
import { User } from '../../entities/users/user.entity.js';
import { DwengoEntityRepository } from '../dwengo-entity-repository.js';
// Import { UserRepository } from './user-repository.js';

// Export class StudentRepository extends UserRepository<Student> {}

export class StudentRepository extends DwengoEntityRepository<Student> {
    public findByUsername(username: string): Promise<Student | null> {
        return this.findOne({ username: username });
    }
    public deleteByUsername(username: string): Promise<void> {
        return this.deleteWhere({ username: username });
    }
}
