2025-02-26 22:28:19 +08:00
|
|
|
package database
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
2025-03-01 20:00:54 +08:00
|
|
|
type Tag struct {
|
2025-02-27 01:14:16 +08:00
|
|
|
ID string `gorm:"primaryKey;not null" json:"id"`
|
2025-03-01 21:27:28 +08:00
|
|
|
Code string `gorm:"not null;unique" json:"code"`
|
2025-02-26 22:28:19 +08:00
|
|
|
Name string `gorm:"not null" json:"name"`
|
|
|
|
|
CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
|
|
|
|
|
UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
|
|
|
|
|
}
|