personal_website/models/cashTransactionModel.ts
2024-07-16 15:06:58 +02:00

16 lines
327 B
TypeScript

import mongoose, { Schema } from 'mongoose';
const cashTransaction = new Schema({
'raw': String,
'day': Number,
'month': Number,
'year': Number,
'amount': Number,
'type': Number,
'company': String,
});
const CashTransaction = mongoose.model('cashTransaction', cashTransaction);
export default CashTransaction;