Can field's default value be generated by a function?

I’m envisioning something akin to the way Mongoose does it where you simply pass in the function object and it’s called whenever a new record is created, but I can’t seem to find anything about this in the documentation for Strapi or Bookshelf. Is there a way to achieve this without writing a custom lifecycle hook?