ms_admin_menu.js
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*********************************************************************
# Autor: sandyWqh
# Date: 2020-11-02 17:42:13
# Description:
# Version: 1.0
# LastEditors: sandyWqh
# LastEditTime: 2020-11-11 09:36:59
**********************************************************************/
/* jshint indent: 2 */
module.exports = function (sequelize, DataTypes) {
return sequelize.define('ms_admin_menu', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
created_at: {
type: DataTypes.DATE,
allowNull: false
},
updated_at: {
type: DataTypes.DATE,
allowNull: false
},
pid: {
type: DataTypes.INTEGER(11),
allowNull: true
},
menu_name: {
type: DataTypes.STRING(50),
allowNull: false
},
menu_url: {
type: DataTypes.STRING(255),
allowNull: true
},
menu_code: {
type: DataTypes.STRING(50),
allowNull: true
},
menu_status: {
type: DataTypes.INTEGER(11),
allowNull: true,
defaultValue: '1'
},
menu_type: {
type: DataTypes.STRING(20),
allowNull: true
},
description: {
type: DataTypes.STRING(200),
allowNull: true
},
icon_url: {
type: DataTypes.STRING(200),
allowNull: true
},
sort: {
type: DataTypes.INTEGER(11),
allowNull: true
},
oper_user_id: {
type: DataTypes.INTEGER(6),
allowNull: true,
defaultValue: 0
}
}, {
tableName: 'ms_admin_menu'
});
};
//# sourceMappingURL=ms_admin_menu.js.map