1
This commit is contained in:
41
api/model/sof_sofawa.js
Normal file
41
api/model/sof_sofawa.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const db = require("../../middleware/db");
|
||||
const Sequelize = require("sequelize");
|
||||
|
||||
|
||||
module.exports = sof_sofawa = db.define("sof_sofawa", {
|
||||
|
||||
sofaKey: {
|
||||
type: Sequelize.STRING(100),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "软件key",
|
||||
},
|
||||
title: {
|
||||
type: Sequelize.STRING(100),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "软件名称",
|
||||
},
|
||||
version: {
|
||||
type: Sequelize.STRING(50),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "软件版本",
|
||||
},
|
||||
down_url: {
|
||||
type: Sequelize.STRING(500),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "软件版本",
|
||||
},
|
||||
file_size: {
|
||||
|
||||
type: Sequelize.STRING(500),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "软件大小",
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
// sof_sofawa.sync({ force: true });
|
||||
Reference in New Issue
Block a user