package
Version:
v0.0.0-...-6245078
Opens a new window with list of versions in this module.
Published: Aug 9, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
gorm.Model
LookupKey string `gorm:"unique_index;not null"`
IV string `gorm:"not null"`
CipherText string `gorm:"not null"`
}
type Instrument struct {
Name string `gorm:"primary_key;auto_increment:false"`
Tracks []Track `gorm:"many2many:tracks_instruments"`
Users []User `gorm:"many2many:users_instruments"`
}
type User struct {
gorm.Model
Username string `gorm:"unique;not null"`
WalletAddress string `gorm:"unique;not null"`
Tracks []Track `gorm:"foreignkey:ComposerID"`
Instruments []Instrument `gorm:"many2many:users_instruments"`
DisplayName string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.