从sequelize导出数据类型
const { DataTypes } = require('sequelize')
写法,此参数不传默认为text
DataTypes.TEXT('long')
字段定义
@Column({
type: DataTypes.TEXT('long'),
comment: '系统简介'
})
system_introduc: string
const { DataTypes } = require('sequelize')
写法,此参数不传默认为text
DataTypes.TEXT('long')
@Column({
type: DataTypes.TEXT('long'),
comment: '系统简介'
})
system_introduc: string