add deleteSub in event struct
This commit is contained in:
		
							parent
							
								
									72c292bd47
								
							
						
					
					
						commit
						74fe5f57e3
					
				|  | @ -3,22 +3,23 @@ package storage | ||||||
| import "time" | import "time" | ||||||
| 
 | 
 | ||||||
| type Event struct { | type Event struct { | ||||||
| 	ID             string         `json:"id" bson:"_id"` | 	ID                  string         `json:"id" bson:"_id"` | ||||||
| 	Namespace      string         `json:"namespace"` | 	Namespace           string         `json:"namespace"` | ||||||
| 	Owners         []string       `json:"owners"` | 	Owners              []string       `json:"owners"` | ||||||
| 	RestrictedTo   []string       `json:"restricted_to"` | 	RestrictedTo        []string       `json:"restricted_to"` | ||||||
| 	Type           string         `json:"type"` | 	Type                string         `json:"type"` | ||||||
| 	Name           string         `json:"name"` | 	Name                string         `json:"name"` | ||||||
| 	Description    string         `json:"description"` | 	Description         string         `json:"description"` | ||||||
| 	Startdate      time.Time      `json:"startdate"` | 	Startdate           time.Time      `json:"startdate"` | ||||||
| 	Enddate        time.Time      `json:"enddate"` | 	Enddate             time.Time      `json:"enddate"` | ||||||
| 	Starttime      string         `json:"starttime"` | 	Starttime           string         `json:"starttime"` | ||||||
| 	Endtime        string         `json:"endtime"` | 	Endtime             string         `json:"endtime"` | ||||||
| 	Allday         bool           `json:"allday"` | 	Allday              bool           `json:"allday"` | ||||||
| 	MaxSubscribers int64          `json:"max_subscribers"` | 	MaxSubscribers      int64          `json:"max_subscribers"` | ||||||
| 	Subscriptions  []Subscription `json:"subscriptions" bson:"subscriptions,omitempty"` | 	Subscriptions       []Subscription `json:"subscriptions" bson:"subscriptions,omitempty"` | ||||||
| 	Data           map[string]any `json:"data"` | 	DeletedSubscription []Subscription `json:"deletedsubscriptions" bson:"deletedsubscriptions,omitempty"` | ||||||
| 	Deleted        bool           `json:"deleted"` | 	Data                map[string]any `json:"data"` | ||||||
|  | 	Deleted             bool           `json:"deleted"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type Subscription struct { | type Subscription struct { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue