Skip to content

Commit

Permalink
feat(type): user
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jan 8, 2023
1 parent e097b99 commit a0d8242
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions core/type/src/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import type {AlwatrDocumentObject} from './storage.js';

export const genderCS = ['male', 'female'] as const;
export type Gender = typeof genderCS[number];

export type User = AlwatrDocumentObject & {
name: string;
phoneNumber: string;
/**
* User global unique id (verifiable)
*/
id: string;

/**
* User full name
*/
fullName: string;

gender?: Gender;

email?: string;
phoneNumber?: string;
};

0 comments on commit a0d8242

Please sign in to comment.