123456789101112131415161718192021222324252627282930313233343536 |
- /* indent size: 2 */
- // eslint-disable-next-line strict
- module.exports = app => {
- const DataTypes = app.Sequelize;
- const Model = app.model.define('RelUserInviter', {
- id: {
- type: DataTypes.INTEGER(10).UNSIGNED,
- allowNull: false,
- primaryKey: true,
- autoIncrement: true,
- },
- user_id: {
- type: DataTypes.INTEGER(10).UNSIGNED,
- allowNull: true,
- },
- inviter_id: {
- type: DataTypes.INTEGER(10).UNSIGNED,
- allowNull: true,
- },
- create_time: {
- type: DataTypes.TIME,
- allowNull: true,
- },
- }, {
- tableName: 'szj_rel_user_inviter',
- });
- Model.associate = function() {
- };
- // 同步:没有就新建,有就不变
- Model.sync();
- return Model;
- };
|