Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chats ¶
type Chats struct { ChatId uuid.UUID `gorm:"primaryKey; type:uuid; default:uuid_generate_v4(); column:chat_id" json:"chat_id"` LastMsg string `gorm:"column:last_msg" json:"last_msg"` SenderId uuid.UUID `gorm:"column:sender_id" json:"sender_id"` User Users `gorm:"foreignKey:SenderId; references:UserId"` }
type Users ¶
type Users struct { UserId uuid.UUID `gorm:"primaryKey; column:user_id; type:uuid; default:uuid_generate_v4()" json:"userid"` Password string `gorm:"not null" json:"password"` Email string `gorm:"unique; not null" json:"email"` Name string `gorm:"unique; not null" json:"name"` Url string `gorm:"default:https://github.com/shadcn.png;" json:"profpic"` LastOnline time.Time `gorm:"default:CURRENT_TIMESTAMP; not null" json:"lastonline"` }
Click to show internal directories.
Click to hide internal directories.