```
update Implement standardized documentation for all database modules, including purpose, rules, and requirements for each CRUD operation; refactor existing comments to follow new documentation standard ```
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
//
|
||||
// PURPOSE:
|
||||
// Count blocked student records in the database
|
||||
//
|
||||
// RULES:
|
||||
// 1. Uses PocketBase collection COL_USER_METAS with role='student'
|
||||
// 2. Only counts records with status='blocked'
|
||||
// 3. Returns Promise<number> with the count
|
||||
// 4. Uses PocketBase's getList with filter
|
||||
//
|
||||
|
||||
import { COL_USER_METAS } from '@/constants';
|
||||
import { pb } from '@/lib/pb';
|
||||
|
||||
|
Reference in New Issue
Block a user