refactor: project name and set default plan for new user
This commit is contained in:
@@ -2,13 +2,11 @@ package database
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type News struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
|
||||
AuthorID uuid.UUID `gorm:"type:uuid;not null" json:"author_id"`
|
||||
ID string `gorm:"primaryKey" json:"id"`
|
||||
AuthorID string `gorm:"not null" json:"author_id"`
|
||||
Title string `gorm:"default:null" json:"title"`
|
||||
Content string `gorm:"default:null" json:"content"`
|
||||
IsPremium bool `gorm:"default:false" json:"is_premium"`
|
||||
|
||||
Reference in New Issue
Block a user