diff --git a/src/database/database.go b/src/database/database.go index 2c2a14a..c9175c7 100644 --- a/src/database/database.go +++ b/src/database/database.go @@ -10,7 +10,7 @@ import ( "github.com/vingarcia/ksql/adapters/kpgx" ) -var ProductsTable = ksql.NewTable("products", "product_id") +var ProductsTable = ksql.NewTable("products") type Product struct { id int `ksql:"id"` @@ -19,7 +19,7 @@ type Product struct { created_at time.Time `ksql:"created_at,timeNowUTC"` } -var UserClaimsTable = ksql.NewTable("user_claims", "user_claim_id") +var UserClaimsTable = ksql.NewTable("user_claims") type UserClaim struct { id int `ksql:"id"` @@ -39,7 +39,7 @@ const ( IngredientsList ) -var AutomatedClaimsTable = ksql.NewTable("automated_claims", "automated_claim_id") +var AutomatedClaimsTable = ksql.NewTable("automated_claims") type AutomatedClaim struct { id int `ksql:"id"`