You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeCollectionstruct {
BaseNamestring`gorm:"type:varchar(100) not null" json:"name"`
}
typeDocumentstruct {
BaseDocumentIdint64`gorm:"type:bigint not null;fk:Collection.Id,ondelete=CASCADE" json:"documentId"`
}
Motivation
belong,one2one,one2many, many2many are useless on most cases and add much complexity to the project. Please let developers to build relations in the code.
Reasons:
The records of tables are offen cache in the redis. It means one2one,one2many,many2many are no need.
many2many is useless. The middle table offen has other column, and the middle table maybe has more than 2 foreigner keys.
Please forget Java ORM in golang. be light.
Related Issues
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days
Describe the feature
Would please simplify the relation mapping between tables like SqlAlchemy.
for example:
Golang example:
Motivation
belong
,one2one
,one2many
,many2many
are useless on most cases and add much complexity to the project. Please let developers to build relations in the code.Reasons:
Related Issues
The text was updated successfully, but these errors were encountered: