Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = migrate.NewMigrations()
Functions ¶
This section is empty.
Types ¶
type OAuthIdentity ¶
type OAuthIdentity struct {
bun.BaseModel `bun:"table:oauth_identities,alias:oi"`
ID string `bun:"id,pk,type:text"`
UserID string `bun:"user_id,notnull,type:text"`
Provider string `bun:"provider,notnull,type:text"` // 'google'
ProviderID string `bun:"provider_id,notnull,type:text"` // Google sub
Email string `bun:"email,type:text"`
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
}
type Registry ¶
type Registry struct {
bun.BaseModel `bun:"table:registry,alias:r"`
ID string `bun:"id,pk,type:text"`
OwnerID string `bun:"owner_id,notnull,type:text"`
Key string `bun:"key,notnull"`
Value string `bun:"value,notnull"`
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"updated_at,notnull,default:current_timestamp"`
}
type RegistryWithEncryption ¶
type RegistryWithEncryption struct {
bun.BaseModel `bun:"table:registry,alias:r"`
ID string `bun:"id,pk,type:text"`
OwnerID string `bun:"owner_id,notnull,type:text"`
Key string `bun:"key,notnull"`
Value string `bun:"value,notnull"`
IsEncrypted bool `bun:"is_encrypted,notnull,default:false"`
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"updated_at,notnull,default:current_timestamp"`
}
RegistryWithEncryption represents the registry table with the is_encrypted column
type User ¶
type User struct {
bun.BaseModel `bun:"table:users,alias:u"`
ID string `bun:"id,pk,type:text"`
DisplayName string `bun:"display_name,notnull"`
Username string `bun:"username,notnull,unique"`
HashedPassword string `bun:"hashed_password,notnull"`
Role string `bun:"role,notnull,default:'user'"`
IsActive bool `bun:"is_active,notnull,default:true"`
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"updated_at,notnull,default:current_timestamp"`
}
Source Files
¶
- 20250504_create_metadata_table.go
- 20250816_create_users_table.go
- 20250831_add_is_encrypted_to_registry.go
- 20250923_add_video_extensions.go
- 20251020_migrate_storage_config_keys.go
- 20260315_add_raw_extensions.go
- 20260416_add_email_avatar_to_users.go
- 20260417_create_oauth_identities.go
- 20260418_oauth_identities_fk_cascade.go
- 20260421_add_pending_email_fields_to_users.go
- 20260424_remove_obsolete_gallery_setting_keys.go
- migrations.go
Click to show internal directories.
Click to hide internal directories.