<?php namespace myretail\models;use Yii;class ApPaymentType extends \yii\db\ActiveRecord{public static function tableName(){return 'ap_payment_type';}public static function getDb(){return Yii::$app->dbMyRetail;}public function rules(){return [ [['fpkey'],'required'],[['fpkey'],'integer'],[['ftype'],'string','max'=>20],[['fpkey'],'unique'],];}public function attributeLabels(){return [ 'fpkey'=>'Fpkey','ftype'=>'Ftype',];}}