- Implement standalone Go backend API server using Gin and pure-Go SQLite (modernc.org/sqlite) - Add 11-table schema DDL migrations (000001_init.up.sql) based on DATA_TABLE.md - Add seed data ingestion tool (cmd/seed) and static TypeScript content exporter (cmd/export-content) - Add configuration loader (internal/config) supporting environment variables and .env files (HOST, PORT, DB_PATH, GIN_MODE, CORS_ALLOW_ORIGINS, AUTO_MIGRATE) - Add lightweight multi-stage Dockerfile and docker-compose.yml with persistent SQLite volume - Add comprehensive architecture specification (ARCHITECTURE.md) and REST API interface specification (API_INTERFACE.md) - Harmonize frontend publications page to consume isHighlight flag from database-synced content
27 lines
857 B
Go
27 lines
857 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Member struct {
|
|
ID int `json:"id"`
|
|
NameKo string `json:"name_ko"`
|
|
NameEn string `json:"name_en"`
|
|
Degree string `json:"degree"`
|
|
Affiliation *string `json:"affiliation,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
IsAdvisor bool `json:"is_advisor"`
|
|
DisplayOrder int `json:"display_order"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
type Alumnus struct {
|
|
ID int `json:"id"`
|
|
NameKo string `json:"name_ko"`
|
|
NameEn string `json:"name_en"`
|
|
Degree string `json:"degree"`
|
|
GraduatedAt string `json:"graduated_at"`
|
|
Major *string `json:"major,omitempty"`
|
|
CurrentPosition *string `json:"current_position,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|