models

package
v0.0.0-...-61added Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ID     uuid.UUID `sql:",type:uuid"`
	Active bool
}

Configuration is a struct for the Configuration model.

func (Configuration) String

func (u Configuration) String() string

type LandingPage

type LandingPage struct {
	ID         uuid.UUID `sql:",type:uuid"`
	Title      string
	CreatorID  int64
	Creator    *User
	MovementID uuid.UUID `sql:",type:uuid"`
	Movement   *Movement
}

LandingPage is a struct representing a reachable html endpoint.

func (LandingPage) String

func (s LandingPage) String() string

type Movement

type Movement struct {
	ID            uuid.UUID `sql:",type:uuid"`
	Title         string
	Description   string
	URI           string
	FeaturedImage string
	CreatorID     uuid.UUID `sql:",type:uuid"`
	Creator       *User
}

Movement is a core model representing an organization.

func (Movement) String

func (s Movement) String() string

type Story

type Story struct {
	ID       uuid.UUID `sql:",type:uuid"`
	Title    string
	AuthorID uuid.UUID `sql:",type:uuid"`
	Author   *User
}

Story is a struct datatype representing an article or story.

func (Story) String

func (s Story) String() string

type User

type User struct {
	ID     uuid.UUID `sql:",type:uuid"`
	Name   string
	Emails []string
}

User is a struct for the user model.

func (User) String

func (u User) String() string

Jump to

Keyboard shortcuts

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