preetjdp / YouOweMe

Making it simpler to track those chillars
9 stars 6 forks source link

[NEW IDEA] "Owe" Schema Design #3

Closed preetjdp closed 4 years ago

preetjdp commented 4 years ago

Is your feature request related to a problem? Please describe. This is an issue created to keep track of the Owe Schema Design, and how to move forward with the general design of this API for it to be saleable.

Describe the idea / solution you'd like The current ideas with 84dd286de2f4cef7f02eeb6240f112c5b7821c30 is to start by testing with experimenting the schema with Hive.

Additional context Multiple Ideas on how to go forward with this will be discussed here.

preetjdp commented 4 years ago

Over the few days built out some basic schema for an Owe. Here's how it looks:

https://github.com/preetjdp/YouOweMe/blob/fd92708b340cb8e892f51ec2f25f66c031dc6d41/mobileApp/lib/resources/models/owe.dart#L7-L23

preetjdp commented 4 years ago

Very Much contemplating over the naming scheme, and the decision to use the name Owe to represent a transaction. I would really like to come up with a better name to represent things.

preetjdp commented 4 years ago
type Owe {
id: ID!
title: String!
amount: Float!
issuedBy: User!
issuedTo: User!
created: Timestamp!
}

The current grapql schema does seem good enough for the moment.