cxfoot/models/CardBank.php
2023-10-27 14:25:12 +08:00

59 lines
1.3 KiB
PHP

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%card_bank}}".
*
* @property int $id
* @property string $b_id 银联方编号
* @property string $name 开户网点名称
* @property string|null $b_start
* @property string|null $b_end
* @property int|null $created_at
* @property int|null $is_delete
* @property int|null $deleted_at
*/
class CardBank extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%card_bank}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['created_at', 'is_delete', 'deleted_at'], 'integer'],
[['b_id'], 'string', 'max' => 20],
[['name'], 'string', 'max' => 255],
[['b_start', 'b_end'], 'string', 'max' => 50],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'b_id' => '银联方编号',
'name' => '开户网点名称',
'b_start' => 'B Start',
'b_end' => 'B End',
'created_at' => 'Created At',
'is_delete' => 'Is Delete',
'deleted_at' => 'Deleted At',
];
}
}