feat: updated user model

This commit is contained in:
nostrdev-com 2025-03-31 15:24:16 +03:00
parent 750a7f21d1
commit 60f39158f5
2 changed files with 8 additions and 0 deletions
src
models
types

@ -1,8 +1,11 @@
import { ObjectId } from 'mongodb'
import { UserRole } from '../types'
export class User {
constructor(
public name: string,
public npub: string[],
public role: UserRole,
public id?: ObjectId
) {}
}

5
src/types/user.ts Normal file

@ -0,0 +1,5 @@
export enum UserRole {
User = 'user',
Reviewer = 'reviewer',
Producer = 'producer'
}