from models.barcode_builders import BarcodeBuilders async def get_barcode_index(): data = await BarcodeBuilders.get(id=1).values("id", "index") return data.index async def update_barcode_index(value): await BarcodeBuilders.filter(id=1).update(index=value)