Adding Server-Generated Timestamps to Bet Schema
I'm creating a basic schema, for a "bet". I want to "add fields" to the bet when its "created".
For example:
I want to create the
Is this something I would handle in a schema? It feels like its possible, i just haven't figured out exactly where/how it would be done. Would this be considered a transformation? Or is this two different schemas I should make?
basically i want effect-http to make a client that doesn't need these fields, and then the server side I can add them. not sure if this is possible?
For example:
I want to create the
createdAt and updatedAt and probably the uuid fields on the server. So the client wouldn't submit those, but the server could respond to the client with those fields.Is this something I would handle in a schema? It feels like its possible, i just haven't figured out exactly where/how it would be done. Would this be considered a transformation? Or is this two different schemas I should make?
basically i want effect-http to make a client that doesn't need these fields, and then the server side I can add them. not sure if this is possible?
