123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%sort_message}}".
- *
- * @property string $id
- * @property string $tel
- * @property string $code
- * @property integer $created_at
- * @property integer $status
- * @property integer $updated_at
- * @property integer $count
- */
- class SortMessage extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%sort_message}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['tel', 'code', 'created_at'], 'required'],
- [['created_at'], 'integer'],
- [['tel'], 'string', 'max' => 32],
- [['code'], 'string', 'max' => 12],
- // [['tel', 'code', 'created_at', 'status', 'updated_at'], 'required'],
- // [['created_at', 'status', 'updated_at', 'count'], 'integer'],
- // [['tel'], 'string', 'max' => 32],
- // [['code'], 'string', 'max' => 12],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'tel' => 'Tel',
- 'code' => 'Code',
- 'created_at' => 'Created At',
- 'status' => 'Status',
- 'updated_at' => 'Updated At',
- 'count' => 'Count',
- ];
- }
- }
|