Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Organization ¶
type Organization struct {
bun.BaseModel `bun:"table:organization"`
ID int64 `bun:"id,pk,autoincrement"`
Name string `bun:"name"`
}
not used yet
type OrganizationMember ¶
type OrganizationMember struct {
bun.BaseModel `bun:"table:organization_member"`
ID int64 `bun:"id,pk,autoincrement"`
Role string `bun:"role"`
UserID int `bun:"user_id"`
OrganizationID int `bun:"organization_id"`
User *User `bun:"rel:belongs-to,join:user_id=id"`
Organization *Organization `bun:"rel:belongs-to,join:organization_id=id"`
}
not used yet
type PostgreSQL ¶
type PostgreSQL struct{}
func (*PostgreSQL) Connect ¶
func (r *PostgreSQL) Connect() *bun.DB
type User ¶
type User struct {
bun.BaseModel `bun:"table:user"`
ID int64 `bun:"id,pk,autoincrement"`
Name string `bun:"name"`
Username string `bun:"username"`
Email string `bun:"email"`
PasswordHash string `bun:"password_hash"`
AuthProvider string `bun:"auth_provider"`
AuthID string `bun:"auth_id"`
Avatar string `bun:"avatar"`
IsAdmin bool `bun:"is_admin"`
}
Click to show internal directories.
Click to hide internal directories.