StoreDividendsUserLeagueLog.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;/**
  4. * This is the model class for table "{{%store_dividends_league_log}}".
  5. *
  6. * @property integer $id
  7. * @property integer $dividends_cycle_id
  8. * @property integer $dividends_user_id
  9. * @property float $dividends_integral
  10. * @property float $league_price
  11. * @property string $created_at
  12. * @property string $updated_at
  13. */
  14. class StoreDividendsUserLeagueLog extends \yii\db\ActiveRecord
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%store_dividends_user_league_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', 'dividends_cycle_id', 'dividends_user_id'], 'integer'],
  35. [['dividends_integral', 'league_price', 'created_at', 'updated_at'], 'number']
  36. ];
  37. }
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => '',
  42. 'dividends_cycle_id' => '',
  43. 'dividends_user_id' => '某店分红用户ID',
  44. 'dividends_integral' => '积分数量',
  45. 'league_price' => '已分红数量(联盟券数量)',
  46. 'created_at' => '创建时间',
  47. 'updated_at' => '修改时间',
  48. ];
  49. }
  50. }