Register.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "{{%register}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $user_id
  15. * @property string $register_time
  16. * @property integer $created_at
  17. * @property integer $continuation
  18. * @property integer $integral
  19. */
  20. class Register extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%register}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['store_id', 'user_id', 'register_time'], 'required'],
  36. [['store_id', 'user_id', 'created_at', 'continuation', 'integral'], 'integer'],
  37. [['register_time'], 'string', 'max' => 25],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'store_id' => 'Store ID',
  48. 'user_id' => 'User ID',
  49. 'register_time' => 'Register Time',
  50. 'created_at' => 'Addtime',
  51. 'continuation' => 'continuation',
  52. 'integral' => 'integral',
  53. ];
  54. }
  55. }