LuckyGroupCommissionLog.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace addons\LuckyGroup\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_lucky_group_commission_log".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $user_id
  10. * @property string $order_no 订单编号
  11. * @property int $level 拼团等级
  12. * @property float $change_num 奖励数量
  13. * @property string $desc 变动说明
  14. * @property string $capital_type 资金类型
  15. * @property int $is_send 是否发放:0:否;1:是;2:无效
  16. * @property int $status 状态[-1:删除;0:禁用;1启用]
  17. * @property int $created_at 添加时间戳
  18. * @property int $updated_at 更新时间戳
  19. */
  20. class LuckyGroupCommissionLog extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addons_lucky_group_commission_log}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'user_id', 'level', 'is_send', 'status', 'created_at', 'updated_at'], 'integer'],
  36. [['change_num'], 'number'],
  37. [['order_no'], 'string', 'max' => 30],
  38. [['desc', 'capital_type'], 'string', 'max' => 255],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'mall_id' => 'Mall ID',
  49. 'user_id' => 'User ID',
  50. 'order_no' => '订单编号',
  51. 'level' => '拼团等级',
  52. 'change_num' => '奖励数量',
  53. 'desc' => '变动说明',
  54. 'capital_type' => '资金类型',
  55. 'is_send' => '是否发放:0:否;1:是;2:无效',
  56. 'status' => '状态[-1:删除;0:禁用;1启用]',
  57. 'created_at' => '添加时间戳',
  58. 'updated_at' => '更新时间戳',
  59. ];
  60. }
  61. }