hedgedoc/src/revisions/revision.entity.ts
David Mehren 35674e80c4
Add RevisionsModule
This contains the module and a model which still needs many properties.

Signed-off-by: David Mehren <git@herrmehren.de>
2020-07-25 20:16:13 +02:00

11 lines
243 B
TypeScript

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