import { Schema, model } from 'mongoose';

const exchangeSchema = new Schema(
	{
		name: { type: String, default: '' }, // exchange
		shortName: { type: String, default: '' }, // BN, HB, BT, KX
		logo: { type: String, default: '' }, // `${assetFolderName}p2p-binance-dark.png`
		bg: { type: String, default: '' }, //"bg/bg-binance.jpg" },
		merchantDetail: { type: String, default: '' },
		orderDetail: { type: String, default: '' },
		advDetail: { type: String, default: '' },
		spotTrade: { type: String, default: '' },
		status: { type: Number, enum: [0, 1], default: 0 }, // 0 - false || 1 - true
		// comment: { type: String, default: '' },
	},
	{
		timestamps: true,
	}
);

export const Exchange = model('Exchange', exchangeSchema);
