gohorsejobs/backend/internal/core/dto/company.go
Tiago Yamamoto 8ee0d59a61 feat: fix seeder password hashing, add custom questions, navbar/footer on register, payment handler
- fix(seeder): add PASSWORD_PEPPER to all bcrypt hashes (admin + candidates/recruiters)
- fix(seeder): add created_by field to jobs INSERT (was causing NOT NULL violation)
- feat(backend): add custom job questions support in applications
- feat(backend): add payment handler and Stripe routes
- feat(frontend): add navbar and footer to /register and /register/user pages
- feat(frontend): add custom question answers to job apply page
- feat(frontend): update home page hero section and navbar buttons
- feat(frontend): update auth/api lib with new endpoints
- chore(db): add migration 045 for application answers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 20:26:49 -06:00

34 lines
1.4 KiB
Go

package dto
import "time"
type CreateCompanyRequest struct {
Name string `json:"name"`
CompanyName string `json:"companyName"` // Alternative field name
Document string `json:"document"` // Tax ID / Business registration (any country)
Contact string `json:"contact"`
AdminEmail string `json:"admin_email"`
Email string `json:"email"` // Alternative field name
Password string `json:"password"`
Phone string `json:"phone"`
Website *string `json:"website,omitempty"`
Address *string `json:"address,omitempty"`
City *string `json:"city,omitempty"`
State *string `json:"state,omitempty"`
Country *string `json:"country,omitempty"` // ISO country name or code
ZipCode *string `json:"zip_code,omitempty"`
EmployeeCount *string `json:"employeeCount,omitempty"`
FoundedYear *int `json:"foundedYear,omitempty"`
Description *string `json:"description,omitempty"`
YearsInMarket *string `json:"years_in_market,omitempty"`
BirthDate *string `json:"birth_date,omitempty"`
AdminBirthDate *string `json:"admin_birth_date,omitempty"`
}
type CompanyResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Token string `json:"token,omitempty"` // JWT token for auth
CreatedAt time.Time `json:"created_at"`
}