Discover Packages
github.com/krapem-mvla/censorship
database
structs
package
Version:
v0.0.0-...-be62591
Opens a new window with list of versions in this module.
Published: Mar 31, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Channel struct {
ID int `gorm:"primary_key" json:"id"`
Name string `gorm:"unique, not null" json:"name"`
}
type Channel_User struct {
ChannelID int `gorm:"primary_key" json:"channel_id"`
UserID int `gorm:"primary_key" json:"user_id"`
}
type Favorited_User struct {
UserID int `gorm:"primary_key" json:"user_id"`
Favorited_UserID int `gorm:"primary_key" json:"favorited_user_id"`
}
type Message struct {
ID int `gorm:"primary_key" json:"id"`
UserID int `json:"user_id"`
ChannelID int `json:"channel_id"`
Content string `gorm:"not null" json:"content"`
Time int64 `gorm:"not null" json:"time"`
}
type User struct {
ID int `gorm:"primary_key" json:"id"`
Username string `gorm:"not null" json:"username"`
Email string `gorm:"not null" json:"email"`
Password []byte `gorm:"not null" json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.