| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace backend\models;
- use Yii;
- /**
- * This is the model class for table "crm_commission_log".
- *
- * @property integer $id
- * @property integer $login
- * @property integer $member_id
- * @property string $type
- * @property double $forex
- * @property double $metal
- * @property double $cfd
- * @property double $gold
- * @property double $silver
- * @property double $wy
- * @property double $stock
- * @property double $btc
- * @property integer $modify_user
- * @property integer $in_time
- */
- class CommissionLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'crm_commission_log';
- }
- /**
- * @return \yii\db\Connection the database connection used by this AR class.
- */
- public static function getDb()
- {
- return Yii::$app->get('dbXcrm');
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['login', 'member_id', 'type', 'modify_user', 'in_time'], 'required'],
- [['login', 'member_id', 'modify_user', 'in_time'], 'integer'],
- [['forex', 'metal', 'cfd', 'gold', 'silver', 'wy', 'stock', 'btc'], 'number'],
- [['type'], 'string', 'max' => 20],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键ID',
- 'login' => 'MT4登录ID',
- 'member_id' => '代理商ID',
- 'type' => '返佣类型',
- 'forex' => 'forex',
- 'metal' => 'metal',
- 'cfd' => 'cfd',
- 'gold' => '黄金',
- 'silver' => '白银',
- 'wy' => '外佣',
- 'stock' => '股指',
- 'btc' => '比特币',
- 'modify_user' => '操作人id',
- 'in_time' => '创建时间',
- ];
- }
- }
|