Add RevisionsModule

This contains the module and a model which still needs many properties.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-07-25 20:16:13 +02:00
parent 348cd3ffe1
commit b528d7f76e
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
2 changed files with 19 additions and 0 deletions

View file

@ -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;
}

View file

@ -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 {}