seeder admin & define all model
This commit is contained in:
parent
63b726c629
commit
5a9a27f31c
17
internal/core/domain/model/about_company_keynote_model.go
Normal file
17
internal/core/domain/model/about_company_keynote_model.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type AboutCompanyKeynote struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
AboutCompanyID int64
|
||||||
|
Keypoint string
|
||||||
|
PathImage *string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
15
internal/core/domain/model/about_company_model.go
Normal file
15
internal/core/domain/model/about_company_model.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type AboutCompany struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Description string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
21
internal/core/domain/model/appointment_model.go
Normal file
21
internal/core/domain/model/appointment_model.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Appointment struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
ServiceID int64
|
||||||
|
Name string
|
||||||
|
PhoneNumber string
|
||||||
|
Email string
|
||||||
|
Brief string
|
||||||
|
Budget float64
|
||||||
|
MeetAt time.Time
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
16
internal/core/domain/model/client_section_model.go
Normal file
16
internal/core/domain/model/client_section_model.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ClientSection struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Name string
|
||||||
|
PathIcon string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
16
internal/core/domain/model/faq_section_model.go
Normal file
16
internal/core/domain/model/faq_section_model.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type FaqSection struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Title string
|
||||||
|
Description string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
18
internal/core/domain/model/hero_section_model.go
Normal file
18
internal/core/domain/model/hero_section_model.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type HeroSection struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Heading string
|
||||||
|
SubHeading string
|
||||||
|
PathVideo *string
|
||||||
|
PathBanner string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
18
internal/core/domain/model/our_team_model.go
Normal file
18
internal/core/domain/model/our_team_model.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type OurTeam struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Name string
|
||||||
|
Role string
|
||||||
|
PathPhoto string
|
||||||
|
Tagline string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
21
internal/core/domain/model/portofolio_detail.go
Normal file
21
internal/core/domain/model/portofolio_detail.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PortofolioDetail struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
PortofolioSectionID int64
|
||||||
|
Category string
|
||||||
|
ClientName string
|
||||||
|
ProjectDate time.Time
|
||||||
|
ProjectUrl *string
|
||||||
|
Title string
|
||||||
|
Description string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
17
internal/core/domain/model/portofolio_section_model.go
Normal file
17
internal/core/domain/model/portofolio_section_model.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PortofolioSection struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
Name string
|
||||||
|
Tagline string
|
||||||
|
Thumbnail *string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
19
internal/core/domain/model/portofolio_testimonial_model.go
Normal file
19
internal/core/domain/model/portofolio_testimonial_model.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PortofolioTestimonial struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
PortofolioSectionID int64
|
||||||
|
Thumbnail string
|
||||||
|
Message string
|
||||||
|
ClientName string
|
||||||
|
Role string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
17
internal/core/domain/model/service_section_model.go
Normal file
17
internal/core/domain/model/service_section_model.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ServiceSection struct {
|
||||||
|
ID int64 `gorm:"id,primaryKey"`
|
||||||
|
PathIcon string
|
||||||
|
Name string
|
||||||
|
Tagline string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt *time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user