Default date in insert

I am a newbie in Cuba studio. My table does not accept nulls on the date, in which way I can insert a record by defaul?

Hi Carlos,

welcome to the forum and the world of CUBA :slight_smile:

To set initial values you can take a look at this section in the docs: entity fields initialization. Which one you chose depens a little bit on when you want it to happen. Already when users have the create screen or just before it gets stored in the db etc. Additionally if you want to use it through the REST API you have to treat it in a special case.

I hope this helps - if you have further questions, don’t hesitate to ask.