mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
30 lines
626 B
Go
30 lines
626 B
Go
package booking
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type GeneratedFile struct {
|
|
Name string
|
|
ContentType string
|
|
Data []byte
|
|
}
|
|
|
|
type StoredInvoiceFile struct {
|
|
ObjectKey string
|
|
ShareURL string
|
|
ShareURLExpiresAt time.Time
|
|
}
|
|
|
|
type InvoiceDocument struct {
|
|
gorm.Model
|
|
BookingID int `gorm:"not null;uniqueIndex"`
|
|
ID int
|
|
ObjectKey string `gorm:"not null"`
|
|
FileName string `gorm:"not null"`
|
|
ContentType string `gorm:"not null"`
|
|
ShareURL string `gorm:"type:text;not null"`
|
|
ShareURLExpiresAt time.Time `gorm:"not null"`
|
|
}
|