SmsLog.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. namespace common\models\extend;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%extend_sms_log}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id 商户id
  9. * @property int|null $member_id 用户id
  10. * @property string|null $mobile 手机号码
  11. * @property string|null $code 验证码
  12. * @property string|null $content 内容
  13. * @property int|null $error_code 报错code
  14. * @property string|null $error_msg 报错信息
  15. * @property string|null $error_data 报错日志
  16. * @property string|null $usage 用途
  17. * @property int|null $used 是否使用[0:未使用;1:已使用]
  18. * @property int|null $use_time 使用时间
  19. * @property string|null $ip ip地址
  20. * @property int|null $is_addon 是否插件
  21. * @property string|null $addon_name 插件名称
  22. * @property string|null $req_id 对外id
  23. * @property int $status 状态(-1:已删除,0:禁用,1:正常)
  24. * @property int|null $created_at 创建时间
  25. * @property int|null $updated_at 修改时间
  26. */
  27. class SmsLog extends \common\models\base\BaseModel
  28. {
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%extend_sms_log}}';
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['merchant_id', 'member_id', 'error_code', 'used', 'use_time', 'is_addon', 'status', 'created_at', 'updated_at'], 'integer'],
  43. [['error_data'], 'string'],
  44. [['mobile', 'usage'], 'string', 'max' => 20],
  45. [['code'], 'safe'],
  46. [['content'], 'string', 'max' => 500],
  47. [['error_msg', 'addon_name'], 'string', 'max' => 200],
  48. [['ip'], 'string', 'max' => 30],
  49. [['req_id'], 'string', 'max' => 50],
  50. ];
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'merchant_id' => '商户id',
  60. 'member_id' => '用户id',
  61. 'mobile' => '手机号码',
  62. 'code' => '验证码',
  63. 'content' => '内容',
  64. 'error_code' => 'Code',
  65. 'error_msg' => '报错信息',
  66. 'error_data' => '报错日志',
  67. 'usage' => '用途',
  68. 'used' => '使用情况',
  69. 'use_time' => '使用时间',
  70. 'ip' => 'ip地址',
  71. 'is_addon' => '是否插件',
  72. 'addon_name' => '插件名称',
  73. 'req_id' => '对外id',
  74. 'status' => '状态',
  75. 'created_at' => '创建时间',
  76. 'updated_at' => '修改时间',
  77. ];
  78. }
  79. }
粤ICP备19079148号