Coverage for src/sideshow/db/model/__init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-22 19:55 -0600
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-22 19:55 -0600
1# -*- coding: utf-8; -*-
2################################################################################
3#
4# Sideshow -- Case/Special Order Tracker
5# Copyright © 2024 Lance Edgar
6#
7# This file is part of Sideshow.
8#
9# Sideshow is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# Sideshow is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with Sideshow. If not, see <http://www.gnu.org/licenses/>.
21#
22################################################################################
23"""
24Sideshow data models
26This is the default :term:`app model` module for Sideshow.
28This namespace exposes everything from
29:mod:`wuttjamaican:wuttjamaican.db.model`, plus the following.
31Primary :term:`data models <data model>`:
33* :class:`~sideshow.db.model.orders.Order`
34* :class:`~sideshow.db.model.orders.OrderItem`
35* :class:`~sideshow.db.model.orders.OrderItemEvent`
36* :class:`~sideshow.db.model.customers.LocalCustomer`
37* :class:`~sideshow.db.model.products.LocalProduct`
38* :class:`~sideshow.db.model.customers.PendingCustomer`
39* :class:`~sideshow.db.model.products.PendingProduct`
41And the :term:`batch` models:
43* :class:`~sideshow.db.model.batch.neworder.NewOrderBatch`
44* :class:`~sideshow.db.model.batch.neworder.NewOrderBatchRow`
45"""
47# bring in all of wutta
48from wuttjamaican.db.model import *
50# sideshow models
51from .customers import LocalCustomer, PendingCustomer
52from .products import LocalProduct, PendingProduct
53from .orders import Order, OrderItem, OrderItemEvent
55# batch models
56from .batch.neworder import NewOrderBatch, NewOrderBatchRow