blob: 3d329d8885c89fc27f7994ae49e4efe4420bd8cd (
plain) (
tree)
|
|
import * as Sequelize from 'sequelize'
import { addMethodsToModel } from '../utils'
import { AvatarAttributes, AvatarInstance, AvatarMethods } from './avatar-interface'
let Avatar: Sequelize.Model<AvatarInstance, AvatarAttributes>
export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) {
Avatar = sequelize.define<AvatarInstance, AvatarAttributes>('Avatar',
{
filename: {
type: DataTypes.STRING,
allowNull: false
}
},
{}
)
const classMethods = []
addMethodsToModel(Avatar, classMethods)
return Avatar
}
// ------------------------------ Statics ------------------------------
|