mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 01:23:31 +01:00
feat: add support for multiple emails
This commit is contained in:
1 parent
ebf104750e
commit
3fbf00c37b
3 files changed
+18
-5
No files matched your search
@@ -9,7 +9,12 @@ const UserSchema = new Schema({
|
||||
type: String,
|
||||
index: { unique: true },
|
||||
},
|
||||
email: String,
|
||||
emails: [
|
||||
{
|
||||
email: { type: String },
|
||||
default: Boolean,
|
||||
},
|
||||
],
|
||||
photo: String,
|
||||
repositories: [String],
|
||||
default: {
|
||||
|
||||
@@ -6,7 +6,10 @@ export interface IUser {
|
||||
};
|
||||
|
||||
username: string;
|
||||
email: string;
|
||||
emails: {
|
||||
email: string;
|
||||
default: boolean;
|
||||
}[];
|
||||
photo?: string;
|
||||
|
||||
repositories?: number[];
|
||||
|
||||
Reference in new issue
Block a user