seeder admin & define all model

This commit is contained in:
monsky 2025-06-01 15:47:32 +00:00
parent 63b726c629
commit 5a9a27f31c
11 changed files with 195 additions and 0 deletions

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}

View 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"`
}