models

package
v0.0.0-...-dcfd991 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatorsMediaActivities

type CreatorsMediaActivities struct {
	gorm.Model
	FileName                string `json:"file_name"`
	FileExtension           string `json:"file_extension"`
	FileType                string `json:"file_type"`
	FilePath                string `json:"file_path"`
	SenderID                string `json:"sender_id"`
	SenderEmail             string `json:"sender_email"`
	SpecialSubscriberStatus bool   `json:"special_subscriber_status"`
	SubscriberID            string `json:"subscriber_id"`
}

type Followers

type Followers struct {
	gorm.Model
	UserID         uint `json:"user_id"`
	FollowedUserID uint `json:"followed_user_id"`
	IsFollowing    bool `json:"is_following"`
}

type Post

type Post struct {
	gorm.Model
	UserID           uint   `json:"user_id"`
	Text             string `json:"text"`
	NeedSubscribtion bool   `json:"need_subscription"`
	SubscriptionID   uint   `json:"subscription_id"`
}

type SubscriberInfo

type SubscriberInfo struct {
	gorm.Model
	UserID               uint
	SubscriptionID       uint
	IsSubscribing        bool
	BillingStatusPaidOff bool `json:"billing-status-paid-off"`
}

type SubscribtionInfo

type SubscribtionInfo struct {
	gorm.Model
	CreatorID            uint    `json:"creator_id"`
	IsFreeFOrAllFollower bool    `json:"is_free_for_all_follower" form:"is_free_for_all_follower"`
	SubscribtionName     string  `json:"subscription_name" form:"subscription_name"`
	IsSubscriptionActive bool    `json:"is_subscription_active" form:"is_subscription_active"`
	Price                float32 `json:"price" form:"price"`
}

type User

type User struct {
	gorm.Model
	Username    string `json:"username" form:"username"`
	Email       string `json:"email" form:"email"`
	Password    string `json:"password" form:"password"`
	FullName    string `json:"full-name" form:"full-name"`
	Gender      string `json:"gender" form:"gender"`
	Role        string `json:"role" form:"role"`
	ProfilePage string `json:"profile_page"`
	AvatarUrl   string `json:"avatar_url"`
	Token       string
}

type UserID

type UserID uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL