mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-10 01:02:01 +08:00
16 lines
493 B
Go
16 lines
493 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type FileShare struct {
|
||
|
ID string `gorm:"type:uuid;default:uuid_generate_v4();primary_key"`
|
||
|
FileID string `gorm:"type:uuid;not null"`
|
||
|
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"`
|
||
|
UserID int64 `gorm:"type:bigint;not null"`
|
||
|
}
|