16 lines
327 B
TypeScript
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;
|