TeamGradesGoods.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%team_grades_goods}}".
  6. *
  7. * @property integer $id
  8. * @property integer $store_id
  9. * @property integer $goods_id
  10. * @property float $goods_team_grades
  11. * @property integer $is_delete
  12. * @property integer $created_at
  13. * @property integer $updated_at
  14. */
  15. class TeamGradesGoods extends \yii\db\ActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%team_grades_goods}}';
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['id', 'store_id', 'goods_id', 'is_delete', 'created_at', 'updated_at'], 'integer'],
  31. [['goods_team_grades'], 'number']
  32. ];
  33. }
  34. public function behaviors()
  35. {
  36. return [
  37. [
  38. 'class' => TimestampBehavior::class
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => '',
  49. 'store_id' => '商城id',
  50. 'goods_id' => '商品id',
  51. 'goods_team_grades' => '业绩分红值',
  52. 'is_delete' => '是否删除',
  53. 'created_at' => '',
  54. 'updated_at' => '',
  55. ];
  56. }
  57. }