chg: admin creation

This commit is contained in:
Alex
2024-10-09 18:12:54 +02:00
parent 5de2f31e5f
commit 79ffb5051c

View File

@@ -98,7 +98,7 @@ func createLicenceCategories() []models.LicenceCategory {
{Category: "CE"}, {Category: "CE"},
{Category: "D1E"}, {Category: "D1E"},
{Category: "DE"}, {Category: "DE"},
{Category: "R"}, {Category: "T"},
{Category: "L"}, {Category: "L"},
} }
} }
@@ -142,16 +142,12 @@ func createAdmin(userMail string, subscriptionModelID uint) (*models.User, error
StartDate: time.Now(), StartDate: time.Now(),
SubscriptionModelID: subscriptionModelID, SubscriptionModelID: subscriptionModelID,
}, },
BankAccount: models.BankAccount{ BankAccount: models.BankAccount{},
AccountHolderName: "",
Bank: "",
IBAN: "", //"DE49700500000008447644", //fake
},
DriversLicence: models.DriversLicence{ DriversLicence: models.DriversLicence{
Status: constants.UnverifiedStatus, Status: constants.UnverifiedStatus,
}, },
}, nil }, nil
//"DE49700500000008447644", //fake
} }
func Close() error { func Close() error {