ShareHolderOutLog.php 1.2 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\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%ShareHolderOutLog}}".
  13. *
  14. * @property integer $id
  15. * @property integer $parent_user_id
  16. * @property integer $child_user_id
  17. * @property integer $status
  18. * @property integer $created_at
  19. * @property integer $updated_at
  20. */
  21. class ShareHolderOutLog extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%share_holder_out_log}}';
  29. }
  30. public function behaviors()
  31. {
  32. return [
  33. [
  34. 'class' => TimestampBehavior::class,
  35. 'attributes' => [
  36. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  37. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  38. ]
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['parent_user_id', 'child_user_id', 'status', 'status'], 'integer'],
  49. [['created_at', 'updated_at'], 'safe']
  50. ];
  51. }
  52. }