fix: update seeder

This commit is contained in:
ericprd 2025-03-10 12:28:56 +08:00
parent ce341dbc13
commit ce17e9dc73

View File

@ -41,9 +41,12 @@ func main() {
if err := db.Where("code = ?", "basic").First(&temp).Error; err != nil { if err := db.Where("code = ?", "basic").First(&temp).Error; err != nil {
log.Print("seeding basic subscribe plan") log.Print("seeding basic subscribe plan")
db.Create(&subscribeplandomain.SubscribePlan{ db.Create(&subscribeplandomain.SubscribePlan{
ID: uuid.NewString(), ID: uuid.NewString(),
Code: "basic", Code: "basic",
Name: "Basic", Name: "Basic",
Length: 0,
Price: 0,
Status: 1,
}) })
} }