The following field produces no default value:
field.Text("kyc_result").Annotations(&entsql.Annotation{Default: "'not_initiated'::text"}),
Whereas these produce the desired result:
...Annotations(&entsql.Annotation{Default: "CURRENT_TIMESTAMP"}),
...Annotations(&entsql.Annotation{Default: "gen_random_uuid()"})
Current Behavior π―

Expected Behavior π€

Steps to Reproduce πΉ
Just spin up an example schema with a Text field that has an annotated default value as in the above snippet.
Your Environment π
| Tech |
Version |
| Go |
1.19 |
| Ent |
entgo.io/ent v0.11.5-0.20221105052850-a91aabe3ef4c |
| Database |
Postgres 13 |
| Driver |
pgx |