feat: added user preferences to user model

This commit is contained in:
Ben Allfree 2022-12-02 18:40:25 -08:00
parent 4ea7a32ea6
commit b17d9a477b
3 changed files with 14 additions and 2 deletions

View File

@ -7,6 +7,7 @@
"@s-libs/micro-dash": "^14.1.0",
"ajv": "^8.11.2",
"nanoid": "^4.0.0",
"pocketbase": "^0.8.0"
"pocketbase": "^0.8.0",
"type-fest": "^3.3.0"
}
}

View File

@ -1,6 +1,12 @@
import { PartialDeep } from 'type-fest'
import { BaseFields } from './types'
export type UserPreferences = {
isFirstTimeRegistrationCompleted: boolean
}
export type UserFields = BaseFields & {
email: string
verified: boolean
preferences?: PartialDeep<UserPreferences>
}

View File

@ -3840,11 +3840,16 @@ type-fest@^0.20.2:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
type-fest@^3.1.0, type-fest@^3.2.0:
type-fest@^3.1.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.2.0.tgz#2c8b49e775d9e314a73ea6fcee0b2e8549d5f886"
integrity sha512-Il3wdLRzWvbAEtocgxGQA9YOoRVeVUGOMBtel5LdEpNeEAol6GJTLw8GbX6Z8EIMfvfhoOXs2bwOijtAZdK5og==
type-fest@^3.2.0, type-fest@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.3.0.tgz#3378c9664eecfd1eb4f0522b13cb0630bc1ec044"
integrity sha512-gezeeOIZyQLGW5uuCeEnXF1aXmtt2afKspXz3YqoOcZ3l/YMJq1pujvgT+cz/Nw1O/7q/kSav5fihJHsC/AOUg==
typescript@*, typescript@^4.8.0, typescript@^4.8.3:
version "4.8.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"