cloud-ide-model-schema
Version:
Pachage for schema management of Cloud IDEsys LMS
68 lines (67 loc) • 1.63 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CCoreSyctr = void 0;
var mongoose_1 = require("mongoose");
/* SCHEMA START */
var core_system_country = new mongoose_1.Schema({
syctr_country_iso_code_two_char: {
type: String,
maxlength: 2,
minlength: 2,
required: true,
trim: true
},
syctr_country_iso_code_three_char: {
type: String,
maxlength: 3,
minlength: 3,
required: true,
trim: true
},
syctr_country_iso_code_digit: {
type: String,
required: true
},
syctr_country_official_name: {
type: String,
maxlength: 200,
required: true,
trim: true
},
syctr_country_iso_name: {
type: String,
maxlength: 200,
required: true,
trim: true
},
syctr_country_top_level_domain: {
type: String,
maxlength: 3,
required: true,
trim: true
},
syctr_country_sovereignty: {
type: String,
maxlength: 200,
required: true,
trim: true
},
syctr_country_telephone_code: {
type: String,
maxlength: 50,
required: true,
trim: true
},
syctr_country_time_zone: {
type: String,
maxlength: 20,
required: true,
},
syctr_country_dst: {
type: String,
maxlength: 20,
default: ""
}
}, { collection: 'core_system_country' });
var CCoreSyctr = mongoose_1.default.model("core_system_country", core_system_country);
exports.CCoreSyctr = CCoreSyctr;