// 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);
}
