entity

package
Version: v0.0.0-...-e33bd30 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paragraph

type Paragraph struct {
	ID        int
	Author    Writer
	Text      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Paragraph is part of a story and can be written by different authors

type Story

type Story struct {
	ID         int
	Title      string
	Synopsis   string
	Paragraphs []Paragraph
	Admins     []Writer
	Authors    []Writer
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

Story is a collection of paragraphs

type Writer

type Writer struct {
	ID        int
	Username  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Writer is the author of a single paragraph

Jump to

Keyboard shortcuts

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