mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
Add AuthorsModule
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:
@@ -0,0 +1,11 @@
|
||||
import { Entity, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { Note } from '../notes/note.entity';
|
||||
|
||||
@Entity()
|
||||
export class Author {
|
||||
//TODO: Still missing many properties
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
note: Note;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Author } from './author.entity';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Author])],
|
||||
})
|
||||
export class AuthorsModule {}
|
||||
Reference in New Issue
Block a user