<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "billing".
 *
 * @property string $BILLING_UUID
 * @property string $BILLING_PROFILE_UUID Asesi
 * @property string $BILLING_SKEMA_UUID Skema
 * @property float $BILLING_SKEMA_BIAYA Biaya
 * @property string $BILLING_BAYAR_BUKTI Bukti Bayar
 * @property string $BILLING_BAYAR_TGL Tanggal Bayar
 * @property string $BILLING_VERIFIKASI Status Verifikasi
 * @property string $BILLING_VERIFIKASI_LSP LSP
 * @property string $BILLING_VERIFIKASI_USERNAME Admnin Verifikator
 * @property string $BILLING_VERIFIKASI_TGL Tanggal Verifikasi
 * @property string $BILLING_PENAGIHAN Penagihan
 * @property string $BILLING_PENAGIHAN_TGL Tanggal Penagihan
 * @property string $CREATED
 * @property string $USERNAME
 */
class Billing extends \yii\db\ActiveRecord
{


    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'billing';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('dbase');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['BILLING_UUID', 'BILLING_PROFILE_UUID', 'BILLING_SKEMA_UUID', 'BILLING_SKEMA_BIAYA', 'BILLING_BAYAR_BUKTI', 'BILLING_BAYAR_TGL', 'BILLING_VERIFIKASI', 'BILLING_VERIFIKASI_LSP', 'BILLING_VERIFIKASI_USERNAME', 'BILLING_VERIFIKASI_TGL', 'BILLING_PENAGIHAN', 'BILLING_PENAGIHAN_TGL', 'CREATED', 'USERNAME'], 'required'],
            [['BILLING_UUID', 'BILLING_PROFILE_UUID', 'BILLING_SKEMA_UUID', 'BILLING_VERIFIKASI_LSP'], 'string'],
            [['BILLING_SKEMA_BIAYA'], 'number'],
            [['BILLING_BAYAR_TGL', 'BILLING_VERIFIKASI_TGL', 'BILLING_PENAGIHAN_TGL', 'CREATED'], 'safe'],
            [['BILLING_BAYAR_BUKTI', 'BILLING_VERIFIKASI_USERNAME'], 'string', 'max' => 100],
            [['BILLING_VERIFIKASI', 'BILLING_PENAGIHAN'], 'string', 'max' => 1],
            [['USERNAME'], 'string', 'max' => 50],
            [['BILLING_UUID'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'BILLING_UUID' => 'Billing Uuid',
            'BILLING_PROFILE_UUID' => 'Asesi',
            'BILLING_SKEMA_UUID' => 'Skema',
            'BILLING_SKEMA_BIAYA' => 'Biaya',
            'BILLING_BAYAR_BUKTI' => 'Bukti Bayar',
            'BILLING_BAYAR_TGL' => 'Tanggal Bayar',
            'BILLING_VERIFIKASI' => 'Status Verifikasi',
            'BILLING_VERIFIKASI_LSP' => 'LSP',
            'BILLING_VERIFIKASI_USERNAME' => 'Admnin Verifikator',
            'BILLING_VERIFIKASI_TGL' => 'Tanggal Verifikasi',
            'BILLING_PENAGIHAN' => 'Penagihan',
            'BILLING_PENAGIHAN_TGL' => 'Tanggal Penagihan',
            'CREATED' => 'Created',
            'USERNAME' => 'Username',
        ];
    }

}
