UNPKG

@xrengine/server-core

Version:

Shared components for XREngine server

36 lines (31 loc) 845 B
import { DataTypes, Model, Sequelize } from 'sequelize' import { RedisSettingInterface } from '@xrengine/common/src/dbmodels/RedisSetting' import { Application } from '../../../declarations' export default (app: Application) => { const sequelizeClient: Sequelize = app.get('sequelizeClient') const RedisSetting = sequelizeClient.define<Model<RedisSettingInterface>>('redisSetting', { id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV1, allowNull: false, primaryKey: true }, enabled: { type: DataTypes.BOOLEAN, allowNull: true }, address: { type: DataTypes.STRING, allowNull: true }, port: { type: DataTypes.STRING, allowNull: true }, password: { type: DataTypes.STRING, allowNull: true } }) return RedisSetting }