I want to define a column of type date. This column should hold the current date of the resource created. How do i set this up? I'm new to kotlin.
In python, one would impletement it this way: date_created = db.Column(db.DateTime, default=db.func.current_timestamp())
What's the kotlin equivalent?
CURRENT_TIMESTAMP
SQL expression – Consistency