photoprism/internal/entity/account.go
Michael Mayer 90dd094a21 Sharing: Add accounts table #11
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-02-02 00:31:09 +01:00

33 lines
903 B
Go

package entity
import (
"database/sql"
"time"
)
// Account represents a remote service account for uploading, downloading or syncing media files.
type Account struct {
ID uint `gorm:"primary_key"`
Name string `gorm:"type:varchar(128);"`
URL string `gorm:"type:varbinary(512);"`
Protocol string `gorm:"type:varbinary(256);"`
ApiKey string `gorm:"type:varbinary(256);"`
Username string `gorm:"type:varbinary(256);"`
Password string `gorm:"type:varbinary(256);"`
LastError string `gorm:"type:varbinary(256);"`
IgnoreErrors bool
PushSize string `gorm:"type:varbinary(16);"`
PushExif bool
PushDelete bool
PushSidecar bool
SyncPush bool
SyncPull bool
SyncPaused int
SyncInterval int
SyncRetry int
SyncedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time `sql:"index"`
}