**Untested! ** Add restore functionality for archived messages
- 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
This commit is contained in:
29
models/syndicate.go
Normal file
29
models/syndicate.go
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user