This commit is contained in:
seb
2026-09-26 23:06:09 +02:00
parent cbb2fdeb6d
commit 69f27a2942
19 changed files with 2231 additions and 0 deletions

26
src/db/warehouse.js Normal file
View File

@@ -0,0 +1,26 @@
import { getStore } from './store.js';
export async function list(googleAuthId) {
const store = await getStore();
return store.warehouse.list(googleAuthId);
}
export async function getById(googleAuthId, id) {
const store = await getStore();
return store.warehouse.getById(googleAuthId, id);
}
export async function create(googleAuthId, data) {
const store = await getStore();
return store.warehouse.create(googleAuthId, data);
}
export async function update(googleAuthId, id, data) {
const store = await getStore();
return store.warehouse.update(googleAuthId, id, data);
}
export async function remove(googleAuthId, id) {
const store = await getStore();
return store.warehouse.delete(googleAuthId, id);
}