You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
2.4 KiB

  1. <?php
  2. namespace backend\modules\zzcs\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "tailor_customer_reply_message".
  6. *
  7. * @property integer $id
  8. * @property integer $cancel_flag
  9. * @property string $create_time
  10. * @property string $update_time
  11. * @property integer $create_user_id
  12. * @property integer $update_user_id
  13. * @property integer $main_corp_id
  14. * @property integer $order_id
  15. * @property integer $tel
  16. * @property string $reply_time
  17. * @property string $reply_info
  18. * @property integer $tailor_id
  19. * @property integer $send_flag
  20. * @property integer $sub_code
  21. */
  22. class TailorCustomerReplyMessage extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return 'tailor_customer_reply_message';
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function rules()
  35. {
  36. return [
  37. [['cancel_flag', 'create_user_id', 'update_user_id', 'main_corp_id', 'order_id', 'tailor_id', 'send_flag','sub_code'], 'integer'],
  38. [['update_time'], 'safe'],
  39. [['tel', 'reply_time', 'reply_info'], 'required'],
  40. [['reply_info'], 'string'],
  41. [['create_time', 'reply_time'], 'string', 'max' => 50],
  42. [['tel'], 'string', 'max' => 11],
  43. //默认值
  44. [['create_time', 'update_time'], 'default', 'value' => date('Y-m-d H:i:s')],
  45. [['cancel_flag','send_flag'], 'default', 'value' => 0],
  46. [['main_corp_id',], 'default', 'value' => 1],
  47. [['create_user_id', 'update_user_id'], 'default', 'value' => 1],
  48. ];
  49. }
  50. /**
  51. * @inheritdoc
  52. */
  53. public function attributeLabels()
  54. {
  55. return [
  56. 'id' => 'ID',
  57. 'cancel_flag' => 'Cancel Flag',
  58. 'create_time' => '创建记录时间',
  59. 'update_time' => '更新记录时间',
  60. 'create_user_id' => 'Create User ID',
  61. 'update_user_id' => 'Update User ID',
  62. 'main_corp_id' => 'Main Corp ID',
  63. 'order_id' => '对应order_main 中的order_id',
  64. 'tel' => '手机号',
  65. 'reply_time' => '顾客回复时间 回复时间+手机号可以唯一确定一条短信',
  66. 'reply_info' => '回复信息',
  67. 'tailor_id' => '对应base_tailor_station中的id',
  68. 'send_flag' => '客人发送短信后 回复短信',
  69. ];
  70. }
  71. }