ariga / entimport

A tool for generating Ent schema from SQL schema
Apache License 2.0
174 stars 49 forks source link

entimport fails to generate uuid fields correctly #33

Open tmc opened 2 years ago

tmc commented 2 years ago

I believe entimport does not currently match the field.UUID API which accepts a second argument.

I just got a field generated as: field.UUID("fooer_id").Optional(uuid.UUID{})

where I believe the appropriate syntax is field.UUID("fooer_id", uuid.UUID{}).Optional()

zeevmoney commented 2 years ago

Hi @tmc,

It is in the roadmap, not supported yet, this is a feature that is handled by schemast in ent contrib repo.