FlowExchangePoints.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%FLOW_RECONSUME_POINTS}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $LAST_DEC_LV 记录时会员级别
  10. * @property string $LAST_EMP_LV 记录时会员聘级
  11. * @property int $LAST_STATUS 记录时状态
  12. * @property string $AMOUNT 金额
  13. * @property string $AMOUNT_STANDARD 标准金额
  14. * @property string $TOTAL 当前总金额
  15. * @property int $IS_INCR 是否增加
  16. * @property string $REMARK 备注
  17. * @property int $REMARK_IS_SHOW 备注是否显示
  18. * @property string $DEAL_TYPE_ID 交易类型名称
  19. * @property int $DEAL_TYPE_IS_PRESET 交易类型是否预置
  20. * @property string $ADMIN_NAME 操作人名称
  21. * @property int $PERIOD_NUM 所在期数
  22. * @property int $CALC_MONTH 所在结算月
  23. * @property string $P_MONTH 表分区的日期索引
  24. * @property int $CREATED_AT 创建时间
  25. * @property int $DELETED 是否删除
  26. * @property int $DELETED_AT 删除时间
  27. */
  28. class FlowExchangePoints extends \common\components\ActiveRecord
  29. {
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public static function tableName()
  34. {
  35. return '{{%FLOW_EXCHANGE_POINTS}}';
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function rules()
  41. {
  42. return [
  43. [['USER_ID', 'REMARK', 'PERIOD_NUM', 'CALC_MONTH', 'P_MONTH', 'CREATED_AT'], 'required'],
  44. [['AMOUNT', 'TOTAL', 'AMOUNT_STANDARD'], 'number'],
  45. [['LAST_STATUS', 'IS_INCR', 'PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT', 'REMARK_IS_SHOW', 'DELETED', 'DELETED_AT', 'DEAL_TYPE_IS_PRESET'], 'integer'],
  46. [['ID', 'USER_ID', 'ADMIN_NAME', 'LAST_DEC_LV', 'LAST_EMP_LV', 'DEAL_TYPE_ID'], 'string', 'max' => 32],
  47. [['REMARK'], 'string', 'max' => 255],
  48. [['ID'], 'unique'],
  49. ];
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'ID' => 'ID',
  58. 'USER_ID' => '会员ID',
  59. 'LAST_DEC_LV' => '记录时会员级别',
  60. 'LAST_EMP_LV' => '记录时会员聘级',
  61. 'LAST_STATUS' => '记录时状态',
  62. 'AMOUNT' => '金额',
  63. 'TOTAL' => '当前总金额',
  64. 'IS_INCR' => '是否增加',
  65. 'REMARK' => '备注',
  66. 'REMARK_IS_SHOW' => '备注是否显示',
  67. 'DEAL_TYPE_ID' => '交易类型ID',
  68. 'DEAL_TYPE_IS_PRESET' => '交易类型是否预置',
  69. 'ADMIN_NAME' => '操作人名称',
  70. 'PERIOD_NUM' => '所在期数',
  71. 'CALC_MONTH' => '所在结算月',
  72. 'P_MONTH' => '表分区的日期索引',
  73. 'CREATED_AT' => '创建时间',
  74. 'DELETED' => '是否删除',
  75. 'DELETED_AT' => '删除时间',
  76. 'ORDER_SN' => '订单号',
  77. ];
  78. }
  79. }