egg.js 相关

 

egg sequelize 建表规范

CREATE TABLE `wx_member` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'primary key',
  `openid` varchar(30) DEFAULT NULL COMMENT 'openid',
    `session_key` varchar(30) DEFAULT NULL COMMENT 'session_key',
  `status` int(1) DEFAULT 1 COMMENT 'status',
  `createdAt` datetime DEFAULT NULL COMMENT 'created time',
  `updatedAt` datetime DEFAULT NULL COMMENT 'updated time',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='wx_member';

sequelize 常用API

https://blog.csdn.net/lvyuan1234/article/details/87010463

https://blog.csdn.net/lvyuan1234/article/details/84939186

 

egg项目部署及PM2

https://blog.csdn.net/clearlxj/article/details/88708709

.

原文地址:https://www.cnblogs.com/xiangsj/p/11340913.html