(using @CreatedDate
and @LastModifiedDate
)
@CreatedDate
private Instant createdAt;
@LastModifiedDate
private Instant updatedAt;
Correct Postgres Type:
ALTER COLUMN stalk_date TYPE TIMESTAMP WITH TIME ZONE,
ALTER COLUMN expiry_date TYPE TIMESTAMP WITH TIME ZONE,
ALTER COLUMN created_at TYPE TIMESTAMP WITH TIME ZONE,
ALTER COLUMN send_date TYPE TIMESTAMP WITH TIME ZONE,
(using DEFAULT CURRENT_TIMESTAMP
in SQL)
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP