mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
refactor: use integer primary keys
Closes #1292 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
499f632d8d
commit
2c1e0517ff
17 changed files with 42 additions and 42 deletions
|
@ -18,7 +18,7 @@ export class NoteUserPermission {
|
|||
*/
|
||||
|
||||
@PrimaryColumn()
|
||||
userId: string;
|
||||
userId: number;
|
||||
|
||||
@ManyToOne((_) => User, {
|
||||
onDelete: 'CASCADE', // This deletes the NoteUserPermission, when the associated Note is deleted
|
||||
|
@ -27,7 +27,7 @@ export class NoteUserPermission {
|
|||
user: User;
|
||||
|
||||
@PrimaryColumn()
|
||||
noteId: string;
|
||||
noteId: number;
|
||||
|
||||
@ManyToOne((_) => Note, (note) => note.userPermissions, {
|
||||
onDelete: 'CASCADE', // This deletes the NoteUserPermission, when the associated Note is deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue