Skip to content

Commit

Permalink
Add NFC field in User (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang authored Oct 7, 2023
1 parent 002d196 commit cfd69de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions types/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface UserData {
baseTheme?: string;
accentColor?: string;
};
nfcPoints: number;
}

export interface PreAddData {
Expand Down

1 comment on commit cfd69de

@vercel
Copy link

@vercel vercel bot commented on cfd69de Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.