Skip to content

Why is there a model and an entity? #482

Answered by billy1624
alper asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alper, basically Model represents a row of record in database. Whereas Entity 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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alper
Comment options

You must be logged in to vote
3 replies
@billy1624
Comment options

@alper
Comment options

@billy1624
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants