chore(storage): run gorm gen

This commit is contained in:
Melody Becker 2025-04-05 22:01:22 +02:00
parent 3f5df241db
commit 427675f38e
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
22 changed files with 554 additions and 174 deletions

View file

@ -40,6 +40,19 @@ func newNotification(db *gorm.DB, opts ...gen.DOOption) notification {
db: db.Session(&gorm.Session{}),
RelationField: field.NewRelation("ForUser", "models.User"),
Server: struct {
field.RelationField
Icon struct {
field.RelationField
}
}{
RelationField: field.NewRelation("ForUser.Server", "models.RemoteServer"),
Icon: struct {
field.RelationField
}{
RelationField: field.NewRelation("ForUser.Server.Icon", "models.MediaMetadata"),
},
},
Icon: struct {
field.RelationField
}{
@ -219,9 +232,6 @@ func newNotification(db *gorm.DB, opts ...gen.DOOption) notification {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}
}{
@ -238,9 +248,6 @@ func newNotification(db *gorm.DB, opts ...gen.DOOption) notification {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}{
RelationField: field.NewRelation("SourceNote.EmoteRelations.Emote", "models.Emote"),
@ -251,16 +258,8 @@ func newNotification(db *gorm.DB, opts ...gen.DOOption) notification {
},
Server: struct {
field.RelationField
Icon struct {
field.RelationField
}
}{
RelationField: field.NewRelation("SourceNote.EmoteRelations.Emote.Server", "models.RemoteServer"),
Icon: struct {
field.RelationField
}{
RelationField: field.NewRelation("SourceNote.EmoteRelations.Emote.Server.Icon", "models.MediaMetadata"),
},
},
},
},
@ -398,6 +397,12 @@ type notificationBelongsToForUser struct {
field.RelationField
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
Icon struct {
field.RelationField
}
@ -557,9 +562,6 @@ type notificationBelongsToSourceNote struct {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}
}