feat: gen model

This commit is contained in:
Rogee
2024-11-29 17:42:59 +08:00
parent 7bc082abea
commit 725a6de5ab
16 changed files with 348 additions and 60 deletions

View File

@@ -12,12 +12,12 @@ import (
)
type MediaResources struct {
ID int64 `sql:"primary_key"`
MediaID int64
Type string
Source *string
Size int64
Publish bool
CreatedAt time.Time
UpdatedAt time.Time
ID int64 `sql:"primary_key" json:"id"`
MediaID int64 `json:"media_id"`
Type string `json:"type"`
Source *string `json:"source"`
Size int64 `json:"size"`
Publish bool `json:"publish"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}