Add various deleted flags to entities | Add active to subscriptions | Add DeleteUser && DeleteChannel endpoints [skip-tests]
All checks were successful
Build Docker and Deploy / Run Unit-Tests (push) Has been skipped
Build Docker and Deploy / Build Docker Container (push) Successful in 43s
Build Docker and Deploy / Deploy to Server (push) Successful in 16s

This commit is contained in:
2025-04-13 16:12:15 +02:00
parent aac34ef738
commit 8c0f0e3e8f
47 changed files with 2453 additions and 243 deletions

View File

@@ -8,11 +8,13 @@ package models
// (use keytokens for write-access)
type Subscription struct {
SubscriptionID SubscriptionID `db:"subscription_id" json:"subscription_id"`
SubscriberUserID UserID `db:"subscriber_user_id" json:"subscriber_user_id"`
ChannelOwnerUserID UserID `db:"channel_owner_user_id" json:"channel_owner_user_id"`
ChannelID ChannelID `db:"channel_id" json:"channel_id"`
ChannelInternalName string `db:"channel_internal_name" json:"channel_internal_name"`
TimestampCreated SCNTime `db:"timestamp_created" json:"timestamp_created"`
Confirmed bool `db:"confirmed" json:"confirmed"`
SubscriptionID SubscriptionID `db:"subscription_id" json:"subscription_id"` //
SubscriberUserID UserID `db:"subscriber_user_id" json:"subscriber_user_id"` //
ChannelOwnerUserID UserID `db:"channel_owner_user_id" json:"channel_owner_user_id"` //
ChannelID ChannelID `db:"channel_id" json:"channel_id"` //
ChannelInternalName string `db:"channel_internal_name" json:"channel_internal_name"` //
TimestampCreated SCNTime `db:"timestamp_created" json:"timestamp_created"` //
Confirmed bool `db:"confirmed" json:"confirmed"` // Channel-Owner confirmed subscription
Active bool `db:"active" json:"active"` // Subscriber has activated the subscription (default)
Deleted bool `db:"deleted" json:"-"` //
}