PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/outtheboxministry.org/nodejs/models/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/outtheboxministry.org/nodejs/models/wo_users.js

/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('Wo_Users', {
    user_id: {
      autoIncrement: true,
      type: DataTypes.INTEGER,
      allowNull: false,
      primaryKey: true
    },
    username: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: "",
      unique: "username"
    },
    email: {
      type: DataTypes.STRING(255),
      allowNull: false,
      defaultValue: "",
      unique: "email"
    },
    password: {
      type: DataTypes.STRING(70),
      allowNull: false,
      defaultValue: ""
    },
    first_name: {
      type: DataTypes.STRING(60),
      allowNull: false,
      defaultValue: ""
    },
    last_name: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    avatar: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: "upload/photos/d-avatar.jpg"
    },
    cover: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: "upload/photos/d-cover.jpg"
    },
    background_image: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    background_image_status: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    relationship_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    address: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    working: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    working_link: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    about: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    school: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    gender: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: "male"
    },
    birthday: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: "0000-00-00"
    },
    country_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    website: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    facebook: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    google: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    twitter: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    linkedin: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    youtube: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    vk: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    instagram: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    language: {
      type: DataTypes.STRING(31),
      allowNull: false,
      defaultValue: "english"
    },
    email_code: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    src: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: "Undefined"
    },
    ip_address: {
      type: DataTypes.STRING(32),
      allowNull: true,
      defaultValue: ""
    },
    follow_privacy: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "0"
    },
    friend_privacy: {
      type: DataTypes.ENUM('0','1','2','3'),
      allowNull: false,
      defaultValue: "0"
    },
    post_privacy: {
      type: DataTypes.STRING(255),
      allowNull: false,
      defaultValue: "ifollow"
    },
    message_privacy: {
      type: DataTypes.ENUM('1','0','2'),
      allowNull: false,
      defaultValue: "0"
    },
    confirm_followers: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "0"
    },
    show_activities_privacy: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    birth_privacy: {
      type: DataTypes.ENUM('0','1','2'),
      allowNull: false,
      defaultValue: "0"
    },
    visit_privacy: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    verified: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "0"
    },
    lastseen: {
      type: DataTypes.DOUBLE,
      allowNull: false,
      defaultValue: 0
    },
    showlastseen: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "1"
    },
    emailNotification: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "1"
    },
    e_liked: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_wondered: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_shared: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_followed: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_commented: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_visited: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_liked_page: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_mentioned: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_joined_group: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_accepted: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_profile_wall_post: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    e_sentme_msg: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    e_last_notif: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: "0"
    },
    notification_settings: {
      type: DataTypes.STRING(400),
      allowNull: false,
      defaultValue: '{"e_liked":1,"e_shared":1,"e_wondered":0,"e_commented":1,"e_followed":1,"e_accepted":1,"e_mentioned":1,"e_joined_group":1,"e_liked_page":1,"e_visited":1,"e_profile_wall_post":1,"e_memory":1}'
    },
    status: {
      type: DataTypes.ENUM('1','0'),
      allowNull: false,
      defaultValue: "0"
    },
    active: {
      type: DataTypes.ENUM('0','1','2'),
      allowNull: false,
      defaultValue: "0"
    },
    admin: {
      type: DataTypes.ENUM('0','1','2'),
      allowNull: false,
      defaultValue: "0"
    },
    type: {
      type: DataTypes.STRING(11),
      allowNull: false,
      defaultValue: "user"
    },
    registered: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: "0/0000"
    },
    start_up: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    start_up_info: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    startup_follow: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    startup_image: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    last_email_sent: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    phone_number: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    sms_code: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    is_pro: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    pro_time: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    pro_type: {
      type: DataTypes.ENUM('0','1','2','3','4'),
      allowNull: false,
      defaultValue: "0"
    },
    joined: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    css_file: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    timezone: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    referrer: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    ref_user_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    balance: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: "0"
    },
    paypal_email: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    notifications_sound: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    order_posts_by: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "1"
    },
    social_login: {
      type: DataTypes.ENUM('0','1'),
      allowNull: false,
      defaultValue: "0"
    },
    android_m_device_id: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    ios_m_device_id: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    android_n_device_id: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    ios_n_device_id: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    web_device_id: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    },
    wallet: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: "0.00"
    },
    lat: {
      type: DataTypes.STRING(200),
      allowNull: false,
      defaultValue: "0"
    },
    lng: {
      type: DataTypes.STRING(200),
      allowNull: false,
      defaultValue: "0"
    },
    last_location_update: {
      type: DataTypes.STRING(30),
      allowNull: false,
      defaultValue: "0"
    },
    share_my_location: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 1
    },
    last_data_update: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    details: {
      type: DataTypes.STRING(300),
      allowNull: false,
      defaultValue: '{"post_count":0,"album_count":0,"following_count":0,"followers_count":0,"groups_count":0,"likes_count":0}'
    },
    sidebar_data: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    last_avatar_mod: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    last_cover_mod: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    points: {
      type: DataTypes.FLOAT,
      allowNull: false,
      defaultValue: 0
    },
    daily_points: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    point_day_expire: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    last_follow_id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    share_my_data: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 1
    },
    last_login_data: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    two_factor: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    new_email: {
      type: DataTypes.STRING(255),
      allowNull: false,
      defaultValue: ""
    },
    two_factor_verified: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    new_phone: {
      type: DataTypes.STRING(32),
      allowNull: false,
      defaultValue: ""
    },
    info_file: {
      type: DataTypes.STRING(300),
      allowNull: false,
      defaultValue: ""
    },
    city: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    state: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ""
    },
    zip: {
      type: DataTypes.STRING(11),
      allowNull: false,
      defaultValue: ""
    },
    school_completed: {
      type: DataTypes.INTEGER,
      allowNull: false,
      defaultValue: 0
    },
    weather_unit: {
      type: DataTypes.STRING(11),
      allowNull: false,
      defaultValue: "us"
    },
    paystack_ref: {
      type: DataTypes.STRING(100),
      allowNull: false,
      defaultValue: ""
    }
  }, {
    sequelize,
    timestamps: false,
    tableName: 'Wo_Users'
  });
};