| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "{{%DEDUCT_RECONSUME}}".
- *
- * @property string $ID
- * @property string $USER_ID 会员ID
- * @property int $RECONSUME_POINTS_SUM 结算月累计复消积分之和
- * @property int $CALC_MONTH 变动的结算月
- * @property int $CREATED_AT 创建时间
- */
- class DeductReconsume extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%DEDUCT_RECONSUME}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['ID', 'USER_ID', 'CALC_MONTH', 'CREATED_AT'], 'required'],
- [['CALC_MONTH', 'CREATED_AT'], 'integer'],
- [['ID', 'USER_ID'], 'string', 'max' => 32],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_ID' => '会员ID',
- 'CALC_MONTH' => '变动的结算月',
- 'RECONSUME_POINTS_SUM' => '此结算月累计复消积分总和',
- 'CREATED_AT' => '创建时间',
- ];
- }
- }
|