Column naming for join column

This commit is contained in:
Jackson Harper
2023-02-22 08:58:30 +08:00
parent 8f304e36be
commit f8a50d320b

View File

@ -198,7 +198,7 @@ export class Group extends BaseEntity {
name!: string
@OneToOne(() => User)
@JoinColumn()
@JoinColumn({ name: 'created_at' })
createdBy!: User
@Column({ type: 'timestamp', name: 'created_at' })