import { nanoId, date, firstName, lastName, email } from 'minifaker'; import 'minifaker/locales/en'; import type { Project } from '@/databases/entities/project'; type RawProjectData = Pick; const projectName = `${firstName()} ${lastName()} <${email}>`; export const createRawProjectData = (payload: Partial): Project => { return { createdAt: date(), updatedAt: date(), id: nanoId.nanoid(), name: projectName, type: 'personal', ...payload, } as Project; };