text: # Copyright © 2019 Province of British Columbia
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  """Model to handle all operations related to FAS Routing slip status codes."""
  
  from .code_table import CodeTable
  from .db import db, ma
  
  
  class RoutingSlipStatusCode(db.Model, CodeTable):
      """This class manages all of the base data about a Routing slip status code."""
  
      __tablename__ = 'routing_slip_status_codes'
  
      code = db.Column(db.String(20), primary_key=True)
      description = db.Column('description', db.String(200), nullable=False)
  
  
  class RoutingSlipStatusCodeSchema(ma.ModelSchema):  # pylint: disable=too-many-ancestors
      """Main schema used to serialize the Status Code."""
  
      class Meta:  # pylint: disable=too-few-public-methods
          """Returns all the fields from the SQLAlchemy class."""
  
          model = RoutingSlipStatusCode
  