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

// Создание sql-таблицы balances
export const Blockchain_SQL = dbConnectMySQL.define('blockchain', {
	id: {
		type: Sequelize.INTEGER,
		autoIncrement: true,
		primaryKey: true,
		allowNull: false,
	},
	coin: { type: Sequelize.STRING, allowNull: false }, // display name
	name: { type: Sequelize.STRING, allowNull: false }, // full_name
	chain: { type: Sequelize.STRING },
	isOnline: { type: Sequelize.BOOLEAN },
	isWithdraw: { type: Sequelize.BOOLEAN }, // withdraw enabled;
	isDeposit: { type: Sequelize.BOOLEAN }, // deposit enabled
	exchangeId: { type: Sequelize.STRING, allowNull: false }, // "BinanceID", "HuobiID", "OkxID"
	exchange: { type: Sequelize.STRING, allowNull: false },
});
