SmsRecord.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%sms_record}}".
  11. *
  12. * @property integer $id
  13. * @property string $mobile
  14. * @property string $tpl
  15. * @property string $content
  16. * @property string $ip
  17. * @property integer $created_at
  18. */
  19. class SmsRecord extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%sms_record}}';
  27. }
  28. /**
  29. * @inheritdoc
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['created_at'], 'integer'],
  35. [['mobile', 'tpl', 'ip'], 'string', 'max' => 255],
  36. [['content'], 'string', 'max' => 1000],
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => 'ID',
  46. 'mobile' => 'Mobile',
  47. 'tpl' => 'Tpl',
  48. 'content' => 'Content',
  49. 'ip' => 'Ip',
  50. 'created_at' => 'Addtime',
  51. ];
  52. }
  53. }