mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
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:
parent
4799f65aff
commit
35674e80c4
2 changed files with 19 additions and 0 deletions
11
src/revisions/revision.entity.ts
Normal file
11
src/revisions/revision.entity.ts
Normal 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;
|
||||||
|
}
|
8
src/revisions/revisions.module.ts
Normal file
8
src/revisions/revisions.module.ts
Normal 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 {}
|
Loading…
Reference in a new issue