schemas #22

Merged
y merged 3 commits from schemas into staging 2025-03-31 12:25:49 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 60f39158f5 - Show all commits
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'
}