'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: true },
    updated_at: { type: DataTypes.DATE, field: 'updated_at', allowNull: true},
    deleted_at: { type: DataTypes.DATE, field: 'deleted_at', allowNull: true }
	},
	{
		timestamps: false,
		underscored: true,
    paranoid: true,
    version: true,
		tableName: 'o_source',
		comment: '订单来源表',
	});
}

