- Add initial project scaffolding with Go module and project structure - Create server and CLI entry points for application - Implement Makefile with development and build commands - Add `.env.example` with comprehensive configuration template - Set up README.md with project documentation and setup instructions - Configure basic dependencies for server, database, and CLI tools - Establish internal package structure for models, services, and handlers - Add initial configuration and environment management - Prepare for HTTP server, CLI, and database integration
18 lines
439 B
Go
18 lines
439 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// Schedule represents available time slots
|
|
type Schedule struct {
|
|
gorm.Model
|
|
StartTime time.Time `json:"start_time" gorm:"not null"`
|
|
EndTime time.Time `json:"end_time" gorm:"not null"`
|
|
IsAvailable bool `json:"is_available" gorm:"default:true"`
|
|
MaxBookings int `json:"max_bookings" gorm:"default:1"`
|
|
BookedCount int `json:"booked_count" gorm:"default:0"`
|
|
}
|