``add new database operations for billing address module including create, delete, get, update functions and related type definitions``

This commit is contained in:
louiscklaw
2025-05-13 13:26:41 +08:00
parent 1aa0502edc
commit 64ca29cf60
13 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { pb } from '@/lib/pb';
import { COL_USER_METAS } from '@/constants';
export async function getAllStudentsCount(): Promise<number> {
const result = await pb.collection(COL_USER_METAS).getList(1, 1, {
filter: `role = "student"`,
//
});
return result.totalItems;
}