mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-03 20:18:22 +00:00
31 lines
1.1 KiB
YAML
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"
|