Fix Formatting

This commit is contained in:
2021-01-18 16:24:28 -05:00
parent b05b1eb9b6
commit 3fd6e7b957
9 changed files with 37 additions and 38 deletions

View File

@@ -1,17 +1,17 @@
package models
import (
"github.com/google/uuid"
"gorm.io/gorm"
"time"
"gorm.io/gorm"
"github.com/google/uuid"
)
// Base contains common columns for all tables.
type Base struct {
UUID uuid.UUID `gorm:"type:uuid;primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
func (base *Base) BeforeCreate(tx *gorm.DB) (err error) {