1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%tag_data}}".
- *
- * @property int $id ID
- * @property int $tag_id 标签id
- * @property string $table_name 数据表
- * @property int $data_id 信息id
- * @property int $user_id 添加者
- * @property int $create_time 添加时间
- */
- class TagData extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%tag_data}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['tag_id', 'table_name', 'data_id', 'user_id', 'create_time'], 'required'],
- [['tag_id', 'data_id', 'user_id', 'create_time'], 'integer'],
- [['table_name'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'tag_id' => '标签id',
- 'table_name' => '数据表',
- 'data_id' => '信息id',
- 'user_id' => '添加者',
- 'create_time' => '添加时间',
- ];
- }
- }
|