|
- <?php
-
- namespace backend\modules\api\models;
-
- use yii\db\ActiveRecord;
-
- /**
- * This is the model class for table "order_ht_consume_stock".
- *
- * @property integer $id
- * @property integer $order_id
- * @property integer $distrib_id
- * @property string $run_date
- * @property integer $consume_stock_count
- * @property integer $cancel_flag
- */
- class OrderHtConsumeStock extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'order_ht_consume_stock';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['order_id', 'distrib_id', 'consume_stock_count', 'cancel_flag'], 'integer'],
- [['run_date'], 'string', 'max' => 10],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'order_id' => '主订单号',
- 'distrib_id' => '渠道商ID',
- 'run_date' => '日期',
- 'consume_stock_count' => '消耗的渠道商库存数量',
- 'cancel_flag' => '是否取消标志',
- ];
- }
- }
|