create base structure

This commit is contained in:
Stanislaw
2022-12-24 00:45:54 +01:00
parent 31d4d055ac
commit 3f17d6e985
6 changed files with 66 additions and 57 deletions

29
database/schemas.go Normal file
View 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
}