LuckyGroupBalanceLog.php 1.9 KB

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