import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import mongoose from "mongoose";

@Schema()
export class CurrencyValuation {
      @Prop()
      syncDate: Date;
      
      @Prop({type:mongoose.Schema.Types.String})
      base: String;

      @Prop({type:mongoose.Schema.Types.String})
      currency: String;

      @Prop({type:mongoose.Schema.Types.Number})
      rates

      @Prop()
      createdAt:Date
}

export const CurrencyValuationSchema = SchemaFactory.createForClass(CurrencyValuation);
