'use strict'
/**
 * 订单来源表
 */
module.exports = function (db, DataTypes) {
	return db.define('osource', {
		name: {type: DataTypes.STRING, field: 'merchant_id', allowNull: false, defaultValue:'',comment:'平台来源' },
    createdAt: { type: DataTypes.DATE, field: 'created_at', allowNull: false, defaultValue: DataTypes.NOW },
    updatedAt: { type: DataTypes.DATE, field: 'updated_at', allowNull: false, defaultValue: DataTypes.NOW },
    deletedAt: { type: DataTypes.DATE, field: 'deleted_at', allowNull: true }
	},
	{
		timestamps: true,
		underscore: true,
    paranoid: true,
    version: true,
		tableName: 'o_source',
		comment: '订单来源表',
	});
}

