TeamGradesDividendLog.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%team_grades_dividend_log}}".
  6. *
  7. * @property integer $id
  8. * @property integer $store_id
  9. * @property integer $user_id
  10. * @property integer $team_grades_id
  11. * @property float $radix
  12. * @property float $profit
  13. * @property float $amount
  14. * @property integer $is_send
  15. * @property integer $send_time
  16. * @property integer $created_at
  17. * @property integer $updated_at
  18. */
  19. class TeamGradesDividendLog extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%team_grades_dividend_log}}';
  27. }
  28. /**
  29. * @inheritdoc
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['id', 'store_id', 'user_id', 'team_grades_id', 'is_send', 'send_time', 'created_at', 'updated_at'], 'integer'],
  35. [['radix', 'profit', 'amount'], 'number']
  36. ];
  37. }
  38. public function behaviors()
  39. {
  40. return [
  41. [
  42. 'class' => TimestampBehavior::class
  43. ]
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => '',
  53. 'store_id' => '店铺id',
  54. 'user_id' => '用户id',
  55. 'team_grades_id' => '团队分红人员id',
  56. 'radix' => '分红基数',
  57. 'profit' => '分红比例',
  58. 'amount' => '分红金额',
  59. 'is_send' => '是否发放',
  60. 'send_time' => '发放时间',
  61. 'created_at' => '',
  62. 'updated_at' => ''
  63. ];
  64. }
  65. }