- Added `RestoreMessageHandler` and route at `/account/messages/restore` - Updated `users_messages` table to support `archived_at` reset - Added restore button to archived messages template - Ensures archived messages can be moved back into inbox
30 lines
454 B
Go
30 lines
454 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Syndicate struct {
|
|
ID int
|
|
OwnerID int
|
|
Name string
|
|
Description string
|
|
CreatedBy int
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type SyndicateMember struct {
|
|
ID int
|
|
SyndicateID int
|
|
UserID int
|
|
Role string
|
|
JoinedAt time.Time
|
|
}
|
|
|
|
type SyndicateInvite struct {
|
|
ID int
|
|
SyndicateID int
|
|
InvitedUserID int
|
|
SentByUserID int
|
|
Status string
|
|
CreatedAt time.Time
|
|
}
|