feat: Replace int IDs with ulid.ULID in domain entities and update TypeScript DTOs

This commit is contained in:
2025-03-09 18:37:52 +00:00
parent 56a6f3cfc4
commit 0402b8ac65
17 changed files with 136 additions and 108 deletions
+37 -37
View File
@@ -1,62 +1,62 @@
// Code generated by tygo. DO NOT EDIT.
//////////
// source: activity.go
// source: activity_dto.go
export interface Activity {
ID: number /* int */;
Name: string;
BillingRate: number /* float64 */;
export interface ActivityDto {
id: string;
name: string;
billingRate: number /* float64 */;
}
//////////
// source: company.go
// source: company_dto.go
export interface Company {
ID: number /* int */;
Name: string;
export interface CompanyDto {
id: string;
name: string;
}
//////////
// source: customer.go
// source: customer_dto.go
export interface Customer {
ID: number /* int */;
Name: string;
CompanyID: number /* int */;
export interface CustomerDto {
id: string;
name: string;
companyId: number /* int */;
}
//////////
// source: project.go
// source: project_dto.go
export interface Project {
ID: number /* int */;
Name: string;
CustomerID: number /* int */;
export interface ProjectDto {
id: string;
name: string;
customerId: number /* int */;
}
//////////
// source: timeentry.go
// source: timeentry_dto.go
export interface TimeEntry {
ID: number /* int */;
UserID: number /* int */;
ProjectID: number /* int */;
ActivityID: number /* int */;
Start: string;
End: string;
Description: string;
Billable: number /* int */; // Percentage (0-100)
export interface TimeEntryDto {
id: string;
userId: number /* int */;
projectId: number /* int */;
activityId: number /* int */;
start: string;
end: string;
description: string;
billable: number /* int */; // Percentage (0-100)
}
//////////
// source: user.go
// source: user_dto.go
export interface User {
ID: number /* int */;
Username: string;
Password: string;
Role: string;
CompanyID: number /* int */;
HourlyRate: number /* float64 */;
export interface UserDto {
id: string;
username: string;
password: string; // Note: In a real application, you would NEVER send the password in a DTO. This is just for demonstration.
role: string;
companyId: number /* int */;
hourlyRate: number /* float64 */;
}