removed un needed custom id's from table definitions
This commit is contained in:
parent
e0175de85f
commit
b82e792029
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/vingarcia/ksql/adapters/kpgx"
|
"github.com/vingarcia/ksql/adapters/kpgx"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ProductsTable = ksql.NewTable("products", "product_id")
|
var ProductsTable = ksql.NewTable("products")
|
||||||
|
|
||||||
type Product struct {
|
type Product struct {
|
||||||
id int `ksql:"id"`
|
id int `ksql:"id"`
|
||||||
|
@ -19,7 +19,7 @@ type Product struct {
|
||||||
created_at time.Time `ksql:"created_at,timeNowUTC"`
|
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 {
|
type UserClaim struct {
|
||||||
id int `ksql:"id"`
|
id int `ksql:"id"`
|
||||||
|
@ -39,7 +39,7 @@ const (
|
||||||
IngredientsList
|
IngredientsList
|
||||||
)
|
)
|
||||||
|
|
||||||
var AutomatedClaimsTable = ksql.NewTable("automated_claims", "automated_claim_id")
|
var AutomatedClaimsTable = ksql.NewTable("automated_claims")
|
||||||
|
|
||||||
type AutomatedClaim struct {
|
type AutomatedClaim struct {
|
||||||
id int `ksql:"id"`
|
id int `ksql:"id"`
|
||||||
|
|
Loading…
Reference in a new issue