Skip to content

Commit

Permalink
Merge branch 'rmi22186-patch-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhansen committed Jan 27, 2015
2 parents f1a930c + 2ae844c commit 6ecece9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/models.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Definition

To define mappings between a model and a table, use the `define` method. Sequelize will then automatically add the attributes `createdAt` and `updatedAt` to it. So you will be able to know when the database entry went into the db and when it was updated the last time. If you do not want timestamps on your models, only want some timestamps, or you are working with an existing database where the columns are named something else, jump straight on to [configuration ][0]to see how to do that.
To define mappings between a model and a table, use the `define` method. Sequelize will then automatically add the attributes `createdAt` and `updatedAt` to it. So you will be able to know when the database entry went into the db and when it was updated the last time. If you do not want timestamps on your models, only want some timestamps, or you are working with an existing database where the columns are named something else, jump straight on to [configuration ][0]to see how to do that.


```js
var Project = sequelize.define('Project', {
Expand Down

0 comments on commit 6ecece9

Please sign in to comment.