schema

package
v0.0.0-...-dbbbe0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteOrphans

func DeleteOrphans() ent.Hook

DeleteOrphans cascades the user deletion to the bucket. Hence, when a user is deleted, its avatar image is deleted as well.

func EnsureImageExists

func EnsureImageExists() ent.Hook

EnsureImageExists ensures the avatar_url points to a real object in the bucket.

Types

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Hooks

func (User) Hooks() []ent.Hook

Hooks of the User.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL