-
I don't get why this duplication is there and it's confusing which to use in any given situation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @alper, basically REF: https://www.sea-ql.org/SeaORM/docs/generate-entity/entity-structure |
Beta Was this translation helpful? Give feedback.
-
Here, now I ended up with this: Totally unclear what to import where and how. |
Beta Was this translation helpful? Give feedback.
Hey @alper, basically
Model
represents a row of record in database. WhereasEntity
glue all the specifications (columns info, primary key info, model info, etc.) of a database table using a unit struct.REF: https://www.sea-ql.org/SeaORM/docs/generate-entity/entity-structure