Allows us to define our own timestamp columns.
This commit allows the user to predefine their own timestamp columns which is useful for databases that already exist. This also allows the user to have their own naming conventions for the timestamp columns. The following options have been added when defining a new table: * createdAt (defaults to "createdAt") * updatedAt (defaults to "updatedAt") * deletedAt (defaults to "deletedAt") * touchedAt (defaults to "touchedAt") Note: The underscored option still remains useful since it's just a simple one line option which allows flexibility for those rare cases in which people decide to change the structure of their database from camelCase to under_score or vice-versa.
Showing
with
75 additions
and
24 deletions
-
Please register or sign in to post a comment