ShareHolderFugouFrostLog.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.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 "{{%ShareHolderFugouFrostLog}}".
  13. *
  14. * @property integer $id
  15. * @property integer $user_id
  16. * @property float $amount
  17. * @property integer $status
  18. * @property integer $created_at
  19. * @property integer $updated_at
  20. * @property integer $order_id
  21. */
  22. class ShareHolderFugouFrostLog extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%share_holder_fugou_frost_log}}';
  30. }
  31. public function behaviors()
  32. {
  33. return [
  34. [
  35. 'class' => TimestampBehavior::class,
  36. 'attributes' => [
  37. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  38. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  39. ]
  40. ]
  41. ];
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function rules()
  47. {
  48. return [
  49. [['user_id', 'status', 'order_id'], 'integer'],
  50. [['amount'], 'number'],
  51. [['created_at', 'updated_at'], 'safe'],
  52. ];
  53. }
  54. }