| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace backend\models;
- use Yii;
- /**
- * This is the model class for table "crm_mail_record".
- *
- * @property integer $id
- * @property string $subject
- * @property string $content
- * @property string $receiver
- * @property integer $status
- * @property integer $in_time
- */
- class MailRecord extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'crm_mail_record';
- }
- /**
- * @return \yii\db\Connection the database connection used by this AR class.
- */
- public static function getDb()
- {
- return Yii::$app->get('dbXcrm');
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['subject', 'content', 'receiver', 'in_time'], 'required'],
- [['content'], 'string'],
- [['status', 'in_time'], 'integer'],
- [['subject', 'receiver'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'subject' => 'Subject',
- 'content' => 'Content',
- 'receiver' => 'Receiver',
- 'status' => 'Status',
- 'in_time' => 'In Time',
- ];
- }
- }
|