mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
actually we don't need to define default on CreateDateColumn and default and onUpdate on UpdateDateColumn, typeorm do this by his self
This commit is contained in:
parent
d7aac639b5
commit
671c7b238d
@ -5,10 +5,10 @@ export class OpenaiThreads extends BaseEntity {
|
||||
@PrimaryColumn({ type: 'char', length: 30 })
|
||||
id: string
|
||||
|
||||
@CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
||||
@CreateDateColumn({ type: 'timestamp' })
|
||||
createdAt: Date
|
||||
|
||||
@UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' })
|
||||
@UpdateDateColumn({ type: 'timestamp' })
|
||||
updatedAt: Date
|
||||
|
||||
@Column({ name: 'user_id', type: 'int', unsigned: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user