12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%shortmsg}}".
- *
- * @property string $id
- * @property string $msgid
- * @property string $recipient
- * @property string $content
- * @property string $receipt
- * @property integer $created_at
- * @property integer $sendtime
- */
- class Shortmsg extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%shortmsg}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['msgid', 'recipient', 'content', 'created_at'], 'required'],
- [['created_at', 'sendtime'], 'integer'],
- [['msgid'], 'string', 'max' => 32],
- [['recipient'], 'string', 'max' => 20],
- [['content'], 'string', 'max' => 100],
- [['receipt'], 'string', 'max' => 10],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'msgid' => 'Msgid',
- 'recipient' => 'Recipient',
- 'content' => 'Content',
- 'receipt' => 'Receipt',
- 'created_at' => 'Created At',
- 'sendtime' => 'Sendtime',
- ];
- }
- }
|