Merge branch 'feat/BE/US-390-Dashboard' into 'development'

[FEAT/BE][US-390 dashboard calculation standart]

See merge request mbugroup/lti-api!152
This commit is contained in:
Hafizh A. Y.
2026-01-12 03:38:51 +00:00
12 changed files with 2215 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package entities
import (
"time"
"gorm.io/gorm"
)
type Dashboard struct {
Id uint `gorm:"primaryKey"`
Name string `gorm:"not null;uniqueIndex:idx_name,where:deleted_at IS NULL"`
CreatedBy uint `gorm:"not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
}