SmsRecord.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 int RESULT 状态
  14. * @property string RESPONSE 回调
  15. * @property string CREATED_AT 时间
  16. */
  17. class SmsRecord extends \common\components\ActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%SMS_RECORD}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['ID'], 'string', 'max' => 32],
  33. [['ID'], 'unique'],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'ID' => 'ID',
  43. 'USER_ID' => '用户ID',
  44. 'CLASSIFY' => '类型',
  45. 'COUNTRY_ID' => '国家ID',
  46. 'MOBILE' => '号码',
  47. 'CONTENT' => '内容',
  48. 'RESULT' => '状态',
  49. 'RESPONSE' => '回调',
  50. 'CREATED_AT' => '创建时间',
  51. ];
  52. }
  53. }