|
- <?php
-
- namespace backend\modules\zzcs\models;
-
- use Yii;
-
- /**
- * This is the model class for table "tailor_customer_reply_message".
- *
- * @property integer $id
- * @property integer $cancel_flag
- * @property string $create_time
- * @property string $update_time
- * @property integer $create_user_id
- * @property integer $update_user_id
- * @property integer $main_corp_id
- * @property integer $order_id
- * @property integer $tel
- * @property string $reply_time
- * @property string $reply_info
- * @property integer $tailor_id
- * @property integer $send_flag
- * @property integer $sub_code
- */
- class TailorCustomerReplyMessage extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'tailor_customer_reply_message';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['cancel_flag', 'create_user_id', 'update_user_id', 'main_corp_id', 'order_id', 'tailor_id', 'send_flag','sub_code'], 'integer'],
- [['update_time'], 'safe'],
- [['tel', 'reply_time', 'reply_info'], 'required'],
- [['reply_info'], 'string'],
- [['create_time', 'reply_time'], 'string', 'max' => 50],
- [['tel'], 'string', 'max' => 11],
- //默认值
- [['create_time', 'update_time'], 'default', 'value' => date('Y-m-d H:i:s')],
- [['cancel_flag','send_flag'], 'default', 'value' => 0],
- [['main_corp_id',], 'default', 'value' => 1],
- [['create_user_id', 'update_user_id'], 'default', 'value' => 1],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'cancel_flag' => 'Cancel Flag',
- 'create_time' => '创建记录时间',
- 'update_time' => '更新记录时间',
- 'create_user_id' => 'Create User ID',
- 'update_user_id' => 'Update User ID',
- 'main_corp_id' => 'Main Corp ID',
- 'order_id' => '对应order_main 中的order_id',
- 'tel' => '手机号',
- 'reply_time' => '顾客回复时间 回复时间+手机号可以唯一确定一条短信',
- 'reply_info' => '回复信息',
- 'tailor_id' => '对应base_tailor_station中的id',
- 'send_flag' => '客人发送短信后 回复短信',
- ];
- }
- }
|