| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace backend\models;
- use Yii;
- /**
- * This is the model class for table "crm_commission_record".
- *
- * @property integer $id
- * @property integer $ib_id
- * @property integer $ib_login
- * @property integer $user_login
- * @property integer $trade_ticket
- * @property integer $trade_type
- * @property double $trade_volume
- * @property string $commission_rule
- * @property string $commission
- * @property integer $in_time
- */
- class CommissionRecord extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'crm_commission_record';
- }
- /**
- * @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 [
- [['ib_id', 'ib_login', 'user_login', 'trade_ticket', 'trade_type', 'trade_volume', 'commission_rule', 'commission', 'in_time'], 'required'],
- [['ib_id', 'ib_login', 'user_login', 'trade_ticket', 'trade_type', 'in_time'], 'integer'],
- [['trade_volume', 'commission'], 'number'],
- [['commission_rule'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'ib_id' => 'Ib ID',
- 'ib_login' => 'Ib Login',
- 'user_login' => 'User Login',
- 'trade_ticket' => 'Trade Ticket',
- 'trade_type' => 'Trade Type',
- 'trade_volume' => 'Trade Volume',
- 'commission_rule' => 'Commission Rule',
- 'commission' => 'Commission',
- 'in_time' => 'In Time',
- ];
- }
- }
|