Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create cart & cartlineitem table to contain the cart information #74

Closed
Tracked by #69
chrisK00 opened this issue Oct 31, 2021 · 0 comments · Fixed by #76
Closed
Tracked by #69

Create cart & cartlineitem table to contain the cart information #74

chrisK00 opened this issue Oct 31, 2021 · 0 comments · Fixed by #76
Assignees
Labels
api anything related to the back-end task Describes a child task of a user story

Comments

@chrisK00
Copy link
Contributor

chrisK00 commented Oct 31, 2021

Suggested design from the discord thread:

public class Cart
{
    public int Id { get; set; }
    public ICollection<CartItem> CartItems { get; set; }
}

public class CartItem
{
    public int Id { get; set; }
    public int CartId { get; set; }
    public Product Product { get; set; }
    public int Quantity { get; set; }
}

child of #70

@chrisK00 chrisK00 added api anything related to the back-end task Describes a child task of a user story labels Oct 31, 2021
@chrisK00 chrisK00 self-assigned this Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api anything related to the back-end task Describes a child task of a user story
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant