feat: added user-settings schema and user-settings module

This commit is contained in:
Mir Arif Hasan
2022-12-19 17:38:46 +06:00
parent 2901fb0d72
commit 4affb2bc5b
8 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class UserSettings {
@Field(() => ID, {
description: 'ID of the User Settings',
})
id: string;
@Field(() => ID, {
description: 'ID of the user this settings belongs to',
})
userUid: string;
@Field({
description: 'All properties present in the settings',
})
properties: string; // JSON string of the properties object (format:[{ key: "background", value: "system" }, ...] ) which will be received from the client
@Field({
description: 'Last updated date-time of the settings',
})
updatedOn: Date;
}