15 lines
307 B
Go
15 lines
307 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Collection struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Code string `gorm:"not null;unique" json:"code"`
|
|
Name string `gorm:"not null" json:"name"`
|
|
Description string `json:"description"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|