Files
eko/sqlc.yml
Kyren223 f793203e04 Added session duration metrics with device analytics along with device
analytics metrics in the DB to aggregate and DeviceID abuse prevention
2025-07-19 18:32:12 +03:00

31 lines
1.1 KiB
YAML

version: "2"
sql:
- engine: "sqlite"
queries: "./query/"
schema: "./internal/server/api/migrations"
gen:
go:
package: "data"
out: "./internal/data/"
emit_pointers_for_null_types: true
overrides:
- column: "device_analytics.device_id"
go_type: "string"
- column: "users.public_key"
go_type: "crypto/ed25519.PublicKey"
- column: "trusted_users.trusted_public_key"
go_type: "crypto/ed25519.PublicKey"
- column: "messages.receiver_id"
go_type: "*github.com/kyren223/eko/pkg/snowflake.ID"
- column: "messages.frequency_id"
go_type: "*github.com/kyren223/eko/pkg/snowflake.ID"
- column: "messages.ping"
go_type: "*github.com/kyren223/eko/pkg/snowflake.ID"
- column: "*.id"
go_type: "github.com/kyren223/eko/pkg/snowflake.ID"
- column: "*.*_id"
go_type: "github.com/kyren223/eko/pkg/snowflake.ID"
rename:
user_datum: "UserData"
is_public_dm: "IsPublicDM"