legalgo-BE-go/database/tag_module.go
2025-03-01 21:27:28 +08:00

14 lines
375 B
Go

package database
import (
"time"
)
type Tag struct {
ID string `gorm:"primaryKey;not null" json:"id"`
Code string `gorm:"not null;unique" json:"code"`
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"`
}