Resource model, storage, and validation