I have the following postgres column definition:
record_time TIMESTAMP WITHOUT TIME ZONE DEFAULT now()
How would I map it to slick? Please take into account that I wish to map the default value generated by the now()
function
i.e:
def recordTimestamp: Rep[Date] = column[Date]("record_time", ...???...)
Should any extra definition go where the ...???...
is currently located?
EDIT (1)
I do not want to use
column[Date]("record_time", O.Default(new Date(System.currentTimeMillis()))) // or some such applicative generation of the date column value