cloud-ide-model-schema
Version:
Pachage for schema management of Cloud IDEsys LMS
49 lines (48 loc) • 1.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CCoreSycr = void 0;
var mongoose_1 = require("mongoose");
/* SCHEMA START */
var core_iso_currency = new mongoose_1.Schema({
sycr_code: {
type: String,
maxlength: 3,
required: true,
unique: true
},
sycr_name: {
type: String,
maxlength: 40,
required: true
},
sycr_numeric_code: {
type: Number,
maxlength: 3,
required: true,
},
sycr_symbol: {
type: String,
required: true,
maxlength: 3,
},
sycr_symbol_location: {
type: String,
required: true,
enum: ["S", "B"],
default: "S"
},
sycr_decimal_places: {
type: Number,
default: 0
},
sycr_fraction_name: {
type: String,
default: ""
},
sycr_country_syctr: {
type: mongoose_1.default.Schema.Types.ObjectId,
ref: "core_system_country"
}
}, { collection: 'core_iso_currency' });
var CCoreSycr = mongoose_1.default.model("core_iso_currency", core_iso_currency);
exports.CCoreSycr = CCoreSycr;