You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
524 B
23 lines
524 B
module.exports = function (sequelize, DataTypes) {
|
|
const Color = sequelize.define(
|
|
"Color",
|
|
{
|
|
// 图片地址
|
|
color: {
|
|
type: DataTypes.STRING
|
|
},
|
|
title: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true
|
|
},
|
|
describe: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true
|
|
},
|
|
},
|
|
{
|
|
timestamps: false,
|
|
}
|
|
);
|
|
return Color
|
|
};
|