SmsRecord.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%SMS_RECORD}}".
  6. *
  7. * @property string ID
  8. * @property string USER_ID 用户ID
  9. * @property string CLASSIFY 类型
  10. * @property string CONTENT 内容
  11. * @property string COUNTRY_ID 国家ID
  12. * @property string MOBILE 号码
  13. * @property string ZONE_CODE 国际区号
  14. * @property int RESULT 状态
  15. * @property string RESPONSE 回调
  16. * @property string CREATED_AT 时间
  17. */
  18. class SmsRecord extends \common\components\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%SMS_RECORD}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['ID'], 'string', 'max' => 32],
  34. [['ID'], 'unique'],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'ID' => 'ID',
  44. 'USER_ID' => '用户ID',
  45. 'CLASSIFY' => '类型',
  46. 'COUNTRY_ID' => '国家ID',
  47. 'MOBILE' => '号码',
  48. 'ZONE_CODE' => '国际区号',
  49. 'CONTENT' => '内容',
  50. 'RESULT' => '状态',
  51. 'RESPONSE' => '回调',
  52. 'CREATED_AT' => '创建时间',
  53. ];
  54. }
  55. }