1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00
Daggerbot-TS/src/models/MPServer.ts

26 lines
659 B
TypeScript
Raw Normal View History

2022-11-11 19:58:11 -05:00
import {Sequelize, DataTypes} from 'sequelize';
var db = new Sequelize('database', 'daggerbot', 'toastsus', {
host: 'localhost',
dialect: 'sqlite',
logging: false,
storage: '../database/MPDB.dat'
})
var ServerDB = db.define('urls', {
serverId: {
type: DataTypes.STRING,
defaultValue: 'Missing ID',
allowNull: false,
unique: true
},
ip: {
type: DataTypes.STRING,
defaultValue: 'Missing IP',
allowNull: false
},
code: {
type: DataTypes.STRING,
defaultValue: 'Missing Code',
allowNull: false
}
}, {timestamps: false})
export default ServerDB;