ixistic / SAD-API-Server

0 stars 0 forks source link

Migration #4

Closed mrteera closed 7 years ago

mrteera commented 7 years ago

http://docs.sequelizejs.com/en/v3/ https://github.com/sequelize/express-example https://github.com/sequelize/cli

mrteera commented 7 years ago
CREATE TABLE guards(id SERIAL NOT NULL, gid integer NOT NULL, name TEXT NOT NULL, token TEXT NOT NULL);

node_modules/.bin/sequelize model:create --name Guard --attributes gid:string,name:string,token:string