31 lines
609 B
TypeScript
31 lines
609 B
TypeScript
// RULES:
|
|
// default variable value for customer
|
|
// empty valur for customer
|
|
|
|
import { defaultBillingAddress } from '@/db/billingAddress/constant';
|
|
|
|
import { dayjs } from '@/lib/dayjs';
|
|
|
|
import type { Student } from './type.d';
|
|
|
|
export const defaultStudent: Student = {
|
|
id: '',
|
|
name: '',
|
|
avatar: undefined,
|
|
email: '',
|
|
phone: undefined,
|
|
quota: 0,
|
|
status: 'pending',
|
|
createdAt: dayjs().toDate(),
|
|
billingAddress: defaultBillingAddress,
|
|
state: 'pending',
|
|
timezone: '',
|
|
language: '',
|
|
currency: '',
|
|
collectionId: '',
|
|
};
|
|
|
|
export const emptyLpCategory: Student = {
|
|
...defaultStudent,
|
|
};
|