This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from pytas0811/Dev
UpdateEntity5
- Loading branch information
Showing
26 changed files
with
592 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace SWD_Laundry_Backend.Domain.Entities; | ||
|
||
public class LaundryStoreOrder : BaseAuditableEntity | ||
#nullable disable | ||
{ | ||
public bool IsDone { get; set; } | ||
|
||
#region Relationship | ||
|
||
[ForeignKey("Order")] | ||
public int OrderID { get; set; } | ||
|
||
[ForeignKey("LaundryStore")] | ||
public int LaundryStoreID { get; set; } | ||
|
||
public LaundryStore LaundryStore { get; set; } | ||
public Order Order { get; set; } | ||
|
||
#endregion Relationship | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SWD_Laundry_Backend.Domain.Entities; | ||
#nullable disable | ||
|
||
public class StaffOrder : BaseAuditableEntity | ||
{ | ||
public bool IsDone { get; set; } | ||
public StaffOrderType Type { get; set; } | ||
|
||
#region Relationship | ||
|
||
[ForeignKey("Staff")] | ||
public int StaffID { get; set; } | ||
|
||
[ForeignKey("Order")] | ||
public int OrderID { get; set; } | ||
|
||
public Staff Staff { get; set; } | ||
public Order Order { get; set; } | ||
|
||
#endregion Relationship | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
namespace SWD_Laundry_Backend.Domain.Entities; | ||
#nullable disable | ||
|
||
public class TimeSchedule : BaseAuditableEntity | ||
{ | ||
{ | ||
public DateTime StartTime { get; set; } | ||
public DateTime EndTime { get; set; } | ||
|
||
#region Special Attribute | ||
|
||
public DayOfWeek DayOfWeek { get; set; } | ||
public TimeFrame TimeFrame { get; set; } | ||
public Staff_Trip Staff_Trip { get; set; } | ||
public List<Staff_Trip> Staff_Trip { get; set; } | ||
|
||
#endregion Special Attribute | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SWD_Laundry_Backend.Domain.Enums; | ||
|
||
public enum StaffOrderType | ||
{ | ||
CollectFromCustomer = 0, | ||
DeliveryToCustomer = 1 | ||
} |
Oops, something went wrong.