Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Card ¶
type Card struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Type string
Number string
Expiration string
Address string
Address2 string
City string
State string
Zip string
UserID uuid.UUID
}
Card struct to describe Card object.
type Movie ¶
type Movie struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Title string
Category string
Cast string
Director string
Producer string
Synopsis string
Reviews string
TrailerPicture string
TrailerVideo string
RatingCode string
ShowTime time.Time
Show []Show `gorm:"foreignKey:MovieID"`
}
Movie struct to describe movie object.
type Order ¶
type Order struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Tickets []Ticket
UserID uuid.UUID
PromotionID uuid.UUID
ShowID uuid.UUID
CardID uuid.UUID
MovieTitle string
TicketPrice float64
BookingFeePrice float64
PromotionPrice float64
SalesTaxPrice float64
TotalPrice float64
CheckOut bool
}
Order struct to describe order object.
type Promotion ¶
type Promotion struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Discount float64
Code string
}
Promotion struct to describe promotion object.
type Show ¶
type Show struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())" validate:"required"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
MovieID uuid.UUID
StartTime time.Time
EndTime time.Time
BookingFee float64
AdultTicketPrice float64
ChildTicketPrice float64
SeniorTicketPrice float64
TheaterLocation string
}
Show struct to describe show object.
type Ticket ¶
type Ticket struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Seat string
OrderID uuid.UUID
ShowID uuid.UUID
Type string
Price float64
}
User struct to describe User object.
type User ¶
type User struct {
ID uuid.UUID `gorm:"primarykey;type:uuid;default:(uuid_generate_v4())"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
IsActive bool
ActivationCode string
IsAdmin bool
UserName string
Email string
Password string
PasswordCode string
Name string
Phone string
Address string
Address2 string
City string
State string
Zip string
NeedPromotion bool
Cards []Card
}
User struct to describe User object.
Click to show internal directories.
Click to hide internal directories.