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