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,11 +12,11 @@ import (
)
type Tenants struct {
ID int64 `sql:"primary_key"`
Name string
Slug string
Description *string
ExpireAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
ID int64 `sql:"primary_key" json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description *string `json:"description"`
ExpireAt time.Time `json:"expire_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}