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.
45 lines
903 B
45 lines
903 B
1 year ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const Video = sequelize.define("video", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "video_id_uindex"
|
||
|
},
|
||
|
videoUrl: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "video_url",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
strucId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "",
|
||
|
primaryKey: false,
|
||
|
field: "struc_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
|
||
|
}, {
|
||
|
tableName: "video",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
|
||
|
dc.models.Video = Video;
|
||
|
return Video;
|
||
|
};
|