import { Schema, model } from 'mongoose';

const tickerSchema = new Schema(
	{
		ticker: { type: String, unique: true }, // "BTCUSDT"
		asset: { type: String }, // "BTC"
		course: { type: String }, // "51026.42000000"
		exchange: { type: String }, // "Binance", "Huobi", "Okex"
		// baseAsset: { type: String }, // coin
		// quoteAsset: { type: String }, // stable Coin - USDT
		// status: { type: Boolean, default: true },
		// comment: { type: String },
	},
	{
		timestamps: true,
	}
);

// Создание nosql-таблицы tickers
export const Ticker = model('Ticker', tickerSchema);
