123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\modules\admin\models;
- use Yii;
- /**
- * This is the model class for table "{{%attachment_index}}".
- *
- * @property int $id ID
- * @property int $a_id 附件ID
- * @property string $table_name 数据表
- * @property int $data_id 关联的记录ID
- * @property string $field 字段
- */
- class AttachmentIndex extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%attachment_index}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['a_id'], 'required'],
- [['a_id', 'data_id'], 'integer'],
- [['table_name', 'field'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'a_id' => '附件ID',
- 'table_name' => '数据表',
- 'data_id' => '关联的记录ID',
- 'field' => '字段',
- ];
- }
- }
|