| > or you build DB views to fix that. That's what VIEWs are for! Well, one use-case of VIEWs, anyways. There's nothing wrong with the schema as the API since you can use VIEWs to maintain backwards compatibility as you evolve your product. Put another way: you will have an API, you will need to maintain backwards compatibility. Not exposing a SQL schema as an API does not absolve you or make it easier to be backwards-compatible. You might argue that you could have server-side JSON schema mapping code to help with schema transitions, and, indeed, that would be true, but whatever you write that code in, it's code, and using SQL or something else is just as well. |