CampFirePlay/models/property.model.js
Degradin 906fffd2ca finaltotransfer
Подготовка к переезду на другой сервер
2024-05-04 19:59:35 +03:00

18 lines
701 B
JavaScript

const sequelize = require('../db');
const {DataTypes} = require('sequelize');
const Property = sequelize.define('property', {
telegram_id: {type: DataTypes.STRING, primaryKey: true, unique: true},
house: {type: DataTypes.JSON, defaultValue: 0},
car1: {type: DataTypes.JSON, defaultValue: 0},
car2: {type: DataTypes.JSON, defaultValue: 0},
car3: {type: DataTypes.JSON, defaultValue: 0},
car4: {type: DataTypes.JSON, defaultValue: 0},
car5: {type: DataTypes.JSON, defaultValue: 0},
mobile: {type: DataTypes.JSON, defaultValue: 0},
weapon: {type: DataTypes.JSON, defaultValue: 0},
equipment: {type: DataTypes.JSON, defaultValue: 0}
})
module.exports = Property;