something

This commit is contained in:
2026-02-23 19:51:13 +01:00
parent c5e7a3c290
commit 59cd90b6a9
11 changed files with 620 additions and 34 deletions

View File

@@ -16,10 +16,10 @@ func Migrate(db *gorm.DB) error {
// It will NOT delete unused columns or change column types
if err := db.AutoMigrate(
&models.Coffee{},
&models.User{}, // SSH key-based authentication
// Add other models here as they're created
// &models.Cart{},
// &models.Order{},
&models.User{}, // SSH key-based authentication
&models.Card{}, // Saved payment methods
&models.Order{}, // Completed purchases
&models.OrderItem{}, // Line items within orders
); err != nil {
return fmt.Errorf("migration failed: %w", err)
}