| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace app\models;
- use app\modules\client\models\OrderComplete;
- use app\utils\OrderNo;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- use yii\helpers\ArrayHelper;
- /**
- * @property integer $id
- * @property integer $store_id
- * @property integer $user_id
- * @property integer $parent_user_id
- * @property float $direct_award
- * @property float $group_award
- * @property float $price
- * @property string $created_at
- * @property string $updated_at
- */
- class SuperSalesUser extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%super_sales_user}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class
- ]
- ];
- }
- public function rules()
- {
- return [
- [['id', 'store_id', 'user_id', 'parent_user_id'], 'integer'],
- [['created_at', 'updated_at'], 'string'],
- [['direct_award', 'group_award', 'price'], 'number']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'store_id' => '商城ID',
- 'user_id' => '用户ID',
- 'parent_user_id' => '',
- 'direct_award' => '直推奖',
- 'group_award' => '成团/分红奖',
- 'price' => '累计佣金',
- 'created_at' => '',
- 'updated_at' => ''
- ];
- }
- }
|