| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%MESSAGE_TEXT}}".
- *
- * @property string $ID
- * @property string $TITLE 标题
- * @property string $CONTENT 内容
- * @property string $TO_UID 发给某个会员
- * @property int $IS_DEL 是否删除
- * @property string $ADMIN_ID 管理员ID
- * @property int $CREATED_AT 创建时间
- * @property int $DELETED_AT 删除时间
- */
- class MessageText extends \common\components\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%MESSAGE_TEXT}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['TITLE', 'CONTENT', 'CREATED_AT'], 'required'],
- [['IS_DEL', 'CREATED_AT', 'DELETED_AT'], 'integer'],
- [['ID', 'TO_UID', 'ADMIN_ID'], 'string', 'max' => 32],
- [['TITLE'], 'string', 'max' => 20],
- [['CONTENT'], 'string', 'max' => 4000],
- [['ID'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'TITLE' => '标题',
- 'CONTENT' => '内容',
- 'TO_UID' => '发给某个会员',
- 'IS_DEL' => '是否删除',
- 'ADMIN_ID' => '管理员ID',
- 'CREATED_AT' => '创建时间',
- 'DELETED_AT' => '删除时间',
- ];
- }
- }
|