import { Schema, model } from 'mongoose';

const orderStatusSchema = new Schema(
	{
		status: { type: String, default: '' },
		colorStatus: { type: String, default: '' },
		values: [
			{
				exchangeId: { type: String, default: '' },
				value: { type: String, default: '' },
			},
		],
	},
	{
		timestamps: true,
	}
);

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