CampFirePlay/models/property.model.js
Degradin 6b7bd04df3 model crossing
Все модели перенесены в отдельную папку
2023-09-19 00:51:56 +03:00

14 lines
497 B
JavaScript

const sequelize = require('../db');
const {DataTypes} = require('sequelize');
const Property = sequelize.define('property', {
telegram_id: {type: DataTypes.INTEGER, primaryKey: true, unique: true},
house: {type: DataTypes.JSON, defaultValue: 0},
car: {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;