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

