added more database data structures to show the next directions

This commit is contained in:
2025-10-24 21:51:48 -06:00
parent b93bc93e00
commit 86540e00b1
3 changed files with 62 additions and 1 deletions
+9 -1
View File
@@ -37,6 +37,14 @@ type Conference struct {
Color *string `db:"color"`
}
type ConferenceSettings struct {
ConfId int32 `db:"confid"`
Uid int32 `db:"uid"`
DefaultPseud *string `db:"default_pseud"`
LastRead *time.Time `db:"last_read"`
LastPost *time.Time `db:"last_post"`
}
// conferenceCache is the cache for Conference objects.
var conferenceCache *lru.TwoQueueCache = nil
@@ -198,7 +206,7 @@ func AmGetConferenceByAlias(alias string) (*Conference, error) {
/* AmGetCommunityConferences returns all conferences for a given community.
* Parameters:
* cid - COmmunity ID to get conferences for.
* cid - Community ID to get conferences for.
* showHidden - true to show hidden conferences.
* Returns:
* Array containing the COnference pointers, or nil.