``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,11 @@
// api method for crate student record
// RULES:
// TBA
import { pb } from '@/lib/pb';
import { COL_STUDENTS } from '@/constants';
import type { CreateFormProps } from '@/components/dashboard/student/type.d';
import type { RecordModel } from 'pocketbase';
export async function createStudent(data: CreateFormProps): Promise<RecordModel> {
return pb.collection(COL_STUDENTS).create(data);
}