18 lines
409 B
Go
18 lines
409 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Composer struct {
|
|
Uuid uuid.UUID `json:"uuid" gorm:"type:uuid;primaryKey"`
|
|
Name string `json:"name" gorm:"not null"`
|
|
Bio string `json:"bio"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
|
|
}
|