model

package
v0.0.0-...-ca490f9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 Ability

type Ability struct {
	gorm.Model
	Name   string
	Damage int
}

type Character

type Character struct {
	gorm.Model
	UserID        int
	CharacterName string
	Class         string
	Abilities     []Ability `gorm:"many2many:character_abilities;"`
}

type User

type User struct {
	gorm.Model
	Name      string `gorm:"unique"`
	Password  string
	Character []Character //`gorm:"foreignkey:UserID"`//`gorm:"foreignKey:id"`
}

Jump to

Keyboard shortcuts

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