Re-migrate code

This commit is contained in:
2026-03-02 10:24:11 +08:00
parent 51025195a5
commit f80f2b43ce
6 changed files with 479 additions and 103 deletions

View File

@@ -60,6 +60,8 @@ func cleanupTestData() {
}
func createTestUsers() {
database.DB.Unscoped().Where("1 = 1").Delete(&models.User{})
testPassword, _ := bcrypt.GenerateFromPassword([]byte("password123"), bcrypt.DefaultCost)
testUsers := []models.User{