create base structure
This commit is contained in:
29
database/schemas.go
Normal file
29
database/schemas.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Quote struct {
|
||||
gorm.Model
|
||||
ID string `gorm:"primaryKey"`
|
||||
date time.Time
|
||||
tags []string
|
||||
}
|
||||
|
||||
type QuoteLine struct {
|
||||
gorm.Model
|
||||
author string
|
||||
content string
|
||||
}
|
||||
type Image struct {
|
||||
gorm.Model
|
||||
id string
|
||||
title string
|
||||
description string
|
||||
date time.Time
|
||||
place string
|
||||
link string
|
||||
}
|
||||
Reference in New Issue
Block a user