Refactor and remove sqlite and replace with MySQL
This commit is contained in:
41
internal/models/syndicate.go
Normal file
41
internal/models/syndicate.go
Normal file
@@ -0,0 +1,41 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"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
|
||||
}
|
||||
|
||||
type SyndicateInviteToken struct {
|
||||
Token string
|
||||
InvitedByUserID int
|
||||
AcceptedByUserID sql.NullInt64
|
||||
CreatedAt time.Time
|
||||
ExpiresAt time.Time
|
||||
AcceptedAt sql.NullTime
|
||||
}
|
||||
Reference in New Issue
Block a user