<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class PublicConfig extends BaseModel
{
    use HasFactory;
    protected $table = 'public_config';

    const APP_PRIVACY = 'app_privacy';
    const APP_SERVICE_TERM = 'app_service_term';
    const APP_LOG_OUT_SERVICE = 'app_log_out_service';

    const APP_USER_STUDY = "app_user_study";
    const NAME_ARR = [
        'app_privacy' => self::LANGUAGE_PRIVACY_ARR,
        'app_service_term' => self::LANGUAGE_SERVICE_ARR,
        'app_log_out_service' => self::LANGUAGE_LOG_OUT_SERVICE_ARR,
        'app_user_study' => self::USER_STUDY_ARR,
    ];
    const LANGUAGE_PRIVACY_ARR = [
        0 => 'cn_privacy',
        1 => 'en_privacy',
        2 => 'tw_privacy',
    ];
    const LANGUAGE_SERVICE_ARR = [
        0 => 'cn_service',
        1 => 'en_service',
        2 => 'tw_service',
    ];
    const LANGUAGE_LOG_OUT_SERVICE_ARR = [
        0 => 'cn_out_service',
        1 => 'en_out_service',
        2 => 'tw_out_service',
    ];

    const USER_STUDY_ARR = [
        0 => 'cn_user_study',
        1 => 'en_user_study',
        2 => 'tw_user_study',
    ];
}
