Bulk commit

This commit is contained in:
2025-08-21 19:35:01 +02:00
parent 372dced0a1
commit cf82dede3b
13 changed files with 540 additions and 77 deletions

View File

@ -26,6 +26,7 @@ var (
Kostenstelle *kostenstelle
Lager *lager
Lagerplatz *lagerplatz
Mandant *mandant
Material *material
Nachricht *nachricht
Projekt *projekt
@ -47,6 +48,7 @@ func SetDefault(db *gorm.DB, opts ...gen.DOOption) {
Kostenstelle = &Q.Kostenstelle
Lager = &Q.Lager
Lagerplatz = &Q.Lagerplatz
Mandant = &Q.Mandant
Material = &Q.Material
Nachricht = &Q.Nachricht
Projekt = &Q.Projekt
@ -69,6 +71,7 @@ func Use(db *gorm.DB, opts ...gen.DOOption) *Query {
Kostenstelle: newKostenstelle(db, opts...),
Lager: newLager(db, opts...),
Lagerplatz: newLagerplatz(db, opts...),
Mandant: newMandant(db, opts...),
Material: newMaterial(db, opts...),
Nachricht: newNachricht(db, opts...),
Projekt: newProjekt(db, opts...),
@ -92,6 +95,7 @@ type Query struct {
Kostenstelle kostenstelle
Lager lager
Lagerplatz lagerplatz
Mandant mandant
Material material
Nachricht nachricht
Projekt projekt
@ -116,6 +120,7 @@ func (q *Query) clone(db *gorm.DB) *Query {
Kostenstelle: q.Kostenstelle.clone(db),
Lager: q.Lager.clone(db),
Lagerplatz: q.Lagerplatz.clone(db),
Mandant: q.Mandant.clone(db),
Material: q.Material.clone(db),
Nachricht: q.Nachricht.clone(db),
Projekt: q.Projekt.clone(db),
@ -147,6 +152,7 @@ func (q *Query) ReplaceDB(db *gorm.DB) *Query {
Kostenstelle: q.Kostenstelle.replaceDB(db),
Lager: q.Lager.replaceDB(db),
Lagerplatz: q.Lagerplatz.replaceDB(db),
Mandant: q.Mandant.replaceDB(db),
Material: q.Material.replaceDB(db),
Nachricht: q.Nachricht.replaceDB(db),
Projekt: q.Projekt.replaceDB(db),
@ -168,6 +174,7 @@ type queryCtx struct {
Kostenstelle IKostenstelleDo
Lager ILagerDo
Lagerplatz ILagerplatzDo
Mandant IMandantDo
Material IMaterialDo
Nachricht INachrichtDo
Projekt IProjektDo
@ -189,6 +196,7 @@ func (q *Query) WithContext(ctx context.Context) *queryCtx {
Kostenstelle: q.Kostenstelle.WithContext(ctx),
Lager: q.Lager.WithContext(ctx),
Lagerplatz: q.Lagerplatz.WithContext(ctx),
Mandant: q.Mandant.WithContext(ctx),
Material: q.Material.WithContext(ctx),
Nachricht: q.Nachricht.WithContext(ctx),
Projekt: q.Projekt.WithContext(ctx),