diff --git a/models/user.ts b/models/user.ts index 570dcfe0..bb2d1464 100644 --- a/models/user.ts +++ b/models/user.ts @@ -46,6 +46,10 @@ export const UserSchema = new Schema( // https://stackoverflow.com/questions/7955040/mongodb-mongoose-unique-if-not-null sparse: true, }, + nfcPoints: { + type: Number, + default: 0, + }, eventsAttended: { type: [Schema.Types.ObjectId], ref: 'Event', diff --git a/types/database.ts b/types/database.ts index daeaa42a..c25e2ab2 100644 --- a/types/database.ts +++ b/types/database.ts @@ -53,6 +53,7 @@ export interface UserData { baseTheme?: string; accentColor?: string; }; + nfcPoints: number; } export interface PreAddData {