diff --git a/package.json b/package.json index 1ed8207..b7e2a4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "patrician-api", - "version": "0.1.0", + "version": "0.2.0-canary.0", "description": "Patrician API", "license": "MIT", "author": "Patrician Team", diff --git a/src/modules/user/user.model.ts b/src/modules/user/user.model.ts index 0e7294c..6c88283 100644 --- a/src/modules/user/user.model.ts +++ b/src/modules/user/user.model.ts @@ -4,7 +4,7 @@ import { AccountSettings } from '../../interfaces/account-settings'; @Model() export class User extends BaseModel { - @StringField() + @StringField({ unique: true }) username!: string; @EmailField({ nullable: true })