mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Fix types for foreign keys
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
1d4107fe90
commit
0c078f5266
3 changed files with 4 additions and 5 deletions
|
@ -94,7 +94,7 @@ export class Revision extends Model<Revision> {
|
|||
}
|
||||
|
||||
@ForeignKey(() => Note)
|
||||
@Column
|
||||
@Column(DataType.UUID)
|
||||
noteId: string
|
||||
|
||||
@BelongsTo(() => Note, { foreignKey: 'noteId', constraints: false, onDelete: 'CASCADE', hooks: true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue