Untitled

 avatar
unknown
typescript
2 years ago
771 B
2
Indexable
export const ChannelSchema = new Schema<ICoreChannel>({
    code: {
        type: String,
        required: true
    },
    name: {
        type: String,
        required: true
    },
    companyCode: {
        type: String,
        required: true
    },
    mailTemplateCode: {
        type: String
    },
    alertTemplateCode: {
        type: String
    },
    templates: {
        type: [{
            templateCode: {
                type: String,
                required: true
            },
            invoiceTypeCode: {
                type: String,
                required: true
            }
        }],
        default: []
    },
    active: {
        type: Boolean,
        required: true,
        default: true
    }
})
Editor is loading...