StoreDividendsUserIntegralLog.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;/**
  4. * This is the model class for table "{{%store_dividends_integral_log}}".
  5. *
  6. * @property integer $id
  7. * @property integer $order_id
  8. * @property integer $order_type
  9. * @property integer $dividends_user_id
  10. * @property float $dividends_integral
  11. * @property string $created_at
  12. * @property string $updated_at
  13. */
  14. class StoreDividendsUserIntegralLog extends \yii\db\ActiveRecord
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%store_dividends_user_integral_log}}';
  22. }
  23. public function behaviors()
  24. {
  25. return [
  26. [
  27. 'class' => TimestampBehavior::class
  28. ]
  29. ];
  30. }
  31. public function rules()
  32. {
  33. return [
  34. [['id', 'order_id', 'dividends_user_id', 'order_type'], 'integer'],
  35. [['dividends_integral', 'created_at', 'updated_at'], 'number']
  36. ];
  37. }
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => '',
  42. 'order_id' => '订单ID',
  43. 'dividends_user_id' => '某店分红用户ID',
  44. 'dividends_integral' => '积分数量',
  45. 'created_at' => '创建时间',
  46. 'updated_at' => '修改时间',
  47. ];
  48. }
  49. }