Skip to content

Commit

Permalink
[feat] 物品管理のdomain追加
Browse files Browse the repository at this point in the history
  • Loading branch information
hikahana committed Dec 3, 2024
1 parent 9bd79ee commit 0b57420
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api/internals/domain/division.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package domain

import (
"time"
)

type Division struct {
ID int `json:"id"`
Name string `json:"name"`
FinancialRecordId int `json:"financialRecordId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
14 changes: 14 additions & 0 deletions api/internals/domain/festival_item.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package domain

import (
"time"
)

type FestivalItem struct {
ID int `json:"id"`
Name string `json:"name"`
Memo string `json:"memo"`
DivisionID int `json:"divisionId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
13 changes: 13 additions & 0 deletions api/internals/domain/financial_record.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package domain

import (
"time"
)

type FinancialRecord struct {
ID int `json:"id"`
Name string `json:"name"`
YearID int `json:"yearId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
13 changes: 13 additions & 0 deletions api/internals/domain/item_budget.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package domain

import (
"time"
)

type ItemBudget struct {
ID int `json:"id"`
Amount int `json:"amount"`
FestivalItemID int `json:"festivalItemId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
13 changes: 13 additions & 0 deletions api/internals/domain/user_group.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package domain

import (
"time"
)

type UserGroup struct {
ID int `json:"id"`
UserID int `json:"userId"`
GroupID int `json:"groupId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}

0 comments on commit 0b57420

Please sign in to comment.