| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%FLOW_RECONSUME_POINTS}}".
- *
- * @property string $ID
- * @property string $USER_ID 会员ID
- * @property string $LAST_DEC_LV 记录时会员级别
- * @property string $LAST_EMP_LV 记录时会员聘级
- * @property int $LAST_STATUS 记录时状态
- * @property string $AMOUNT 金额
- * @property string $AMOUNT_STANDARD 标准金额
- * @property string $TOTAL 当前总金额
- * @property int $IS_INCR 是否增加
- * @property string $REMARK 备注
- * @property int $REMARK_IS_SHOW 备注是否显示
- * @property string $DEAL_TYPE_ID 交易类型名称
- * @property int $DEAL_TYPE_IS_PRESET 交易类型是否预置
- * @property string $ADMIN_NAME 操作人名称
- * @property int $PERIOD_NUM 所在期数
- * @property int $CALC_MONTH 所在结算月
- * @property string $P_MONTH 表分区的日期索引
- * @property int $CREATED_AT 创建时间
- * @property int $DELETED 是否删除
- * @property int $DELETED_AT 删除时间
- */
- class FlowExchangePoints extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%FLOW_EXCHANGE_POINTS}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['USER_ID', 'REMARK', 'PERIOD_NUM', 'CALC_MONTH', 'P_MONTH', 'CREATED_AT'], 'required'],
- [['AMOUNT', 'TOTAL', 'AMOUNT_STANDARD'], 'number'],
- [['LAST_STATUS', 'IS_INCR', 'PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT', 'REMARK_IS_SHOW', 'DELETED', 'DELETED_AT', 'DEAL_TYPE_IS_PRESET'], 'integer'],
- [['ID', 'USER_ID', 'ADMIN_NAME', 'LAST_DEC_LV', 'LAST_EMP_LV', 'DEAL_TYPE_ID'], 'string', 'max' => 32],
- [['REMARK'], 'string', 'max' => 255],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_ID' => '会员ID',
- 'LAST_DEC_LV' => '记录时会员级别',
- 'LAST_EMP_LV' => '记录时会员聘级',
- 'LAST_STATUS' => '记录时状态',
- 'AMOUNT' => '金额',
- 'TOTAL' => '当前总金额',
- 'IS_INCR' => '是否增加',
- 'REMARK' => '备注',
- 'REMARK_IS_SHOW' => '备注是否显示',
- 'DEAL_TYPE_ID' => '交易类型ID',
- 'DEAL_TYPE_IS_PRESET' => '交易类型是否预置',
- 'ADMIN_NAME' => '操作人名称',
- 'PERIOD_NUM' => '所在期数',
- 'CALC_MONTH' => '所在结算月',
- 'P_MONTH' => '表分区的日期索引',
- 'CREATED_AT' => '创建时间',
- 'DELETED' => '是否删除',
- 'DELETED_AT' => '删除时间',
- 'ORDER_SN' => '订单号',
- ];
- }
- }
|