simplified startup script to make it easier to deploy on my server

This commit is contained in:
rawleyIfowler
2022-02-23 16:37:01 -06:00
parent a1bdc8ca31
commit f7c6407ccb
3 changed files with 9 additions and 8 deletions

View File

@@ -22,8 +22,8 @@ import (
type BlogPost struct {
gorm.Model
Url string `json:"url" gorm:"primaryKey"`
Title string `json:"title"`
Date string `json:"date"`
Url string `json:"url" gorm:"primaryKey"`
Title string `json:"title"`
Date string `json:"date"`
Comments []Comment `gorm:"foreignKey:Id"`
}