2024-09-15 02:00:32 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type FileShare struct {
|
|
|
|
ID string `gorm:"type:uuid;default:uuid_generate_v4();primary_key"`
|
2025-01-13 15:07:46 +08:00
|
|
|
FileId string `gorm:"type:uuid;not null"`
|
2024-09-15 02:00:32 +08:00
|
|
|
Password *string `gorm:"type:text"`
|
|
|
|
ExpiresAt *time.Time `gorm:"type:timestamp"`
|
|
|
|
CreatedAt time.Time `gorm:"type:timestamp;not null;default:current_timestamp"`
|
|
|
|
UpdatedAt time.Time `gorm:"type:timestamp;not null;default:current_timestamp"`
|
2025-01-13 15:07:46 +08:00
|
|
|
UserId int64 `gorm:"type:bigint;not null"`
|
2024-09-15 02:00:32 +08:00
|
|
|
}
|