import { Sequelize, DataTypes } from 'sequelize';
import { dbConnectMySQL } from '../utilities';

// Создание sql-таблицы balances
export const Balance_SQL = dbConnectMySQL.define('balance', {
	id: {
		type: DataTypes.UUID,
		primaryKey: true,
		defaultValue: Sequelize.UUIDV4,
		allowNull: false,
	},
	userId: { type: Sequelize.STRING },
	exchange: { type: Sequelize.STRING }, // exchange shortName
	localDate: { type: Sequelize.STRING }, // дата ДД.ММ.ГГГГ
	totalUSDT: { type: Sequelize.STRING }, // summ quantity
	courseUSDTRUB: { type: Sequelize.STRING }, // current course assetUSDT
});
