This commit is contained in:
katefort 2025-04-21 16:56:58 -05:00
parent 51a34008f1
commit 2dd8cc3d2b
9 changed files with 92 additions and 73 deletions

View file

@ -0,0 +1,11 @@
package database
import (
"context"
)
func FindClaimsByBarcode(system string, barcode string) {
ctx := context.Background()
api.db.Exec("SELECT * FROM user_claims")
}

View file

@ -36,7 +36,6 @@ func InitializeDatabase() *ksql.DB {
// createTables adds the product, automated_claims, and user_claims tables to the initialized database.
func createTables(ctx context.Context, db ksql.DB) {
_, err := db.Exec(ctx, `
CREATE TABLE IF NOT EXISTS products (
id BIGSERIAL PRIMARY KEY,