From 9db1be3dd2413d8ae9ef0db0fbfffe4a6e3c7e3e Mon Sep 17 00:00:00 2001 From: Sebastian Richner Date: Fri, 16 Feb 2024 23:47:41 +0100 Subject: [PATCH] Update experience sampling response entity with properties --- .../entities/ExperienceSamplingResponseEntity.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/electron/electron/main/entities/ExperienceSamplingResponseEntity.ts b/src/electron/electron/main/entities/ExperienceSamplingResponseEntity.ts index 60404266..c1c7869d 100644 --- a/src/electron/electron/main/entities/ExperienceSamplingResponseEntity.ts +++ b/src/electron/electron/main/entities/ExperienceSamplingResponseEntity.ts @@ -1,5 +1,14 @@ -import { Entity } from 'typeorm'; +import { Column, Entity } from 'typeorm'; import BaseTrackedEntity from './BaseTrackedEntity'; @Entity({ name: 'experience_sampling_responses' }) -export class ExperienceSamplingResponseEntity extends BaseTrackedEntity {} +export class ExperienceSamplingResponseEntity extends BaseTrackedEntity { + @Column('datetime') + promptedAt: Date; + + @Column('text') + question: string; + + @Column('text') + response: string; +}