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

@ -46,6 +46,12 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
field.RelationField
Creator struct {
field.RelationField
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
Icon struct {
field.RelationField
}
@ -125,9 +131,6 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}
}
@ -150,6 +153,12 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
RelationField: field.NewRelation("AttachmentRelations.Note", "models.Note"),
Creator: struct {
field.RelationField
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
Icon struct {
field.RelationField
}
@ -215,6 +224,19 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
}
}{
RelationField: field.NewRelation("AttachmentRelations.Note.Creator", "models.User"),
Server: struct {
field.RelationField
Icon struct {
field.RelationField
}
}{
RelationField: field.NewRelation("AttachmentRelations.Note.Creator.Server", "models.RemoteServer"),
Icon: struct {
field.RelationField
}{
RelationField: field.NewRelation("AttachmentRelations.Note.Creator.Server.Icon", "models.MediaMetadata"),
},
},
Icon: struct {
field.RelationField
}{
@ -368,9 +390,6 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}
}{
@ -387,9 +406,6 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}{
RelationField: field.NewRelation("AttachmentRelations.Note.EmoteRelations.Emote", "models.Emote"),
@ -400,16 +416,8 @@ func newNote(db *gorm.DB, opts ...gen.DOOption) note {
},
Server: struct {
field.RelationField
Icon struct {
field.RelationField
}
}{
RelationField: field.NewRelation("AttachmentRelations.Note.EmoteRelations.Emote.Server", "models.RemoteServer"),
Icon: struct {
field.RelationField
}{
RelationField: field.NewRelation("AttachmentRelations.Note.EmoteRelations.Emote.Server.Icon", "models.MediaMetadata"),
},
},
},
},
@ -588,6 +596,12 @@ type noteHasManyAttachmentRelations struct {
field.RelationField
Creator struct {
field.RelationField
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
Icon struct {
field.RelationField
}
@ -667,9 +681,6 @@ type noteHasManyAttachmentRelations struct {
}
Server struct {
field.RelationField
Icon struct {
field.RelationField
}
}
}
}