From b528d7f76e8e5ace8094b531f0d2b8d20ba0d7fe Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 25 Jul 2020 20:16:13 +0200 Subject: [PATCH] Add RevisionsModule This contains the module and a model which still needs many properties. Signed-off-by: David Mehren --- src/revisions/revision.entity.ts | 11 +++++++++++ src/revisions/revisions.module.ts | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/revisions/revision.entity.ts create mode 100644 src/revisions/revisions.module.ts diff --git a/src/revisions/revision.entity.ts b/src/revisions/revision.entity.ts new file mode 100644 index 000000000..9a51f7f7a --- /dev/null +++ b/src/revisions/revision.entity.ts @@ -0,0 +1,11 @@ +import { Entity, PrimaryGeneratedColumn } from 'typeorm'; +import { Note } from '../notes/note.entity'; + +@Entity() +export class Revision { + //TODO: Still missing many properties + @PrimaryGeneratedColumn('uuid') + id: string; + + note: Note; +} diff --git a/src/revisions/revisions.module.ts b/src/revisions/revisions.module.ts new file mode 100644 index 000000000..b55c8f04a --- /dev/null +++ b/src/revisions/revisions.module.ts @@ -0,0 +1,8 @@ +import { Module } from '@nestjs/common'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { Revision } from './revision.entity'; + +@Module({ + imports: [TypeOrmModule.forFeature([Revision])], +}) +export class RevisionsModule {}