Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.1 kB
2
Indexable
Never
const mongoose = require('mongoose');
const appModel = new mongoose.Schema(
    {
        // App Info
        app_name: { type: String, required: true, unique: true },
        app_unique_id: { type: String, required: true, unique: true },
        status: { type: Number, default: 1 },

        app_logo: { type: String, default: '' },
        android_notification_type: { type: String, default: '' },
        android_onesignal_app_id: { type: String, default: '' },
        android_onesignal_api_key: { type: String, default: '' },
        android_firebase_server_key: { type: String, default: '' },
        android_firebase_topics: { type: String, default: '' },
        ios_notification_type: { type: String, default: '' },
        ios_onesignal_app_id: { type: String, default: '' },
        ios_onesignal_api_key: { type: String, default: '' },
        ios_firebase_topics: { type: String, default: '' },
        sportapi_base_url: { type: String, default: '' },
        sportapi_api_key: { type: String, default: '' },
        support_mail: { type: String, default: '' },
        from_mail: { type: String, default: '' },
        from_name: { type: String, default: '' },
        smtp_host: { type: String, default: '' },
        smtp_port: { type: String, default: '' },
        smtp_username: { type: String, default: '' },
        smtp_password: { type: String, default: '' },
        smtp_encryption: { type: String, default: '' },

        // Social Information
        facebook: { type: String, default: '' },
        instagram: { type: String, default: '' },
        twitter: { type: String, default: '' },
        telegram: { type: String, default: '' },
        youtube: { type: String, default: '' },

        // Android Settings Information
        android_privacy_policy: { type: String, default: '' },
        android_terms_conditions: { type: String, default: '' },
        android_app_share_link: { type: String, default: '' },
        android_default_page: { type: String, default: '' },
        android_app_publishing_control: { type: String, default: '' },
        android_live_version_code: { type: String, default: '' },
        android_ad_type: { type: String, default: '' },
        android_multiple_ad: { type: String, default: '' },
        android_others_ad_type: { type: String, default: '' },
        android_ad_switch: { type: String, default: '' },
        android_click_control: { type: String, default: '' },
        android_ad_status: { type: String, default: '' },
        android_version_name: { type: String, default: '' },
        android_version_code: { type: String, default: '' },
        android_force_update: { type: String, default: 'no' },
        android_update_for: { type: String, default: 'in' },
        android_app_url: { type: String, default: '' },
        android_button_text: { type: String, default: '' },
        android_description: { type: String, default: '' },
        android_required_app_enable: { type: String, default: 'no' },
        android_required_app_application_id: { type: String, default: '' },
        android_required_app_url: { type: String, default: '' },
        android_required_app_name: { type: String, default: '' },
        android_required_app_description: { type: String, default: '' },
        android_ad: { type: String, default: '' },
        // IOS Settings Information
        ios_privacy_policy: { type: String, default: '' },
        ios_terms_conditions: { type: String, default: '' },
        ios_app_share_link: { type: String, default: '' },
        ios_app_rating_link: { type: String, default: '' },
        ios_default_page: { type: String, default: '' },
        ios_app_publishing_control: { type: String, default: '' },
        ios_live_version_code: { type: String, default: '' },
        ios_ad_type: { type: String, default: '' },
        ios_multiple_ad: { type: String, default: '' },
        ios_others_ad_type: { type: String, default: '' },
        ios_ad_switch: { type: String, default: '' },
        ios_click_control: { type: String, default: '' },
        ios_ad_status: { type: String, default: '' },
        ios_version_name: { type: String, default: '' },
        ios_version_code: { type: String, default: '' },
        ios_force_update: { type: String, default: 'no' },
        ios_update_for: { type: String, default: 'in' },
        ios_app_url: { type: String, default: '' },
        ios_button_text: { type: String, default: '' },
        ios_description: { type: String, default: '' },
        ios_required_app_enable: { type: String, default: 'no' },
        ios_required_app_application_id: { type: String, default: '' },
        ios_required_app_url: { type: String, default: '' },
        ios_required_app_name: { type: String, default: '' },
        ios_required_app_description: { type: String, default: '' },
        ios_ad: { type: String, default: '' }
    },
    { timestamps: true }
);

const AppModel = mongoose.model('AppModel', appModel);

module.exports = AppModel;