Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 989 Bytes

File metadata and controls

22 lines (13 loc) · 989 Bytes

< Models

Models : Create the Server Side Model

Prerequisits

Be sure to read up on Sails' implementation of Models.

Decide on a connection

Sails Models are configured with a 'connection' setting.

Before you create your server, decide if your Model is able to reside alongside the default connection of the web site, or if your implementation requires it's own connection.

How do you want your Database Managed?

Deciding how to create your server side Models depends on how you want your DB tables managed:

  1. let sails create and update the tables
  2. connect to an existing table and have Sails access them

< Models
Next: let sails create and update the tables >