remove duplicate generated columns from LatestNote
This commit is contained in:
parent
0a09e6d86a
commit
01ec9635c1
2 changed files with 9 additions and 5 deletions
|
|
@ -19,7 +19,9 @@ export class LatestNote {
|
|||
@ManyToOne(() => MiUser, {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
@JoinColumn()
|
||||
@JoinColumn({
|
||||
name: 'user_id',
|
||||
})
|
||||
public user: MiUser | null;
|
||||
|
||||
@Column({
|
||||
|
|
@ -32,7 +34,9 @@ export class LatestNote {
|
|||
@ManyToOne(() => MiNote, {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
@JoinColumn()
|
||||
@JoinColumn({
|
||||
name: 'note_id',
|
||||
})
|
||||
public note: MiNote | null;
|
||||
|
||||
constructor(data: Partial<LatestNote>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue