add to db

This commit is contained in:
grngxd 2025-05-06 22:20:30 +01:00
parent a3312ef6f8
commit 93aec1336d
5 changed files with 39 additions and 5 deletions

View file

@ -1,6 +1,8 @@
package types
import (
"time"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
"stereo.cat/backend/internal/auth/client"
@ -16,6 +18,13 @@ type StereoConfig struct {
ImagePath string
Router *gin.Engine
Client client.Client
Database *gorm.DB
JWTSecret string
Database *gorm.DB
JWTSecret string
}
type File struct {
ID string `gorm:"primaryKey"`
Path string `gorm:"not null;index"`
Owner string `gorm:"not null;index"`
CreatedAt time.Time `gorm:"autoCreateTime"`
}