Created
August 21, 2018 15:48
-
-
Save kamilkisiela/d42c47923ead7c801a0a3c9753737171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ObjectID } from 'mongodb'; | |
export interface UserDbObject { | |
_id: ObjectID; | |
profile: ProfileDbObject; | |
photos: [ObjectID]; | |
email?: string | null; | |
} | |
export interface ProfileDbObject { | |
fullName: string; | |
} | |
export interface PhotoDbObject { | |
_id: ObjectID; | |
url: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment