fix: update seeder
This commit is contained in:
parent
ce341dbc13
commit
ce17e9dc73
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user