Coverage for .tox/coverage/lib/python3.11/site-packages/sideshow/db/model/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-16 07:16 -0500

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 

25 

26This is the default :term:`app model` module for Sideshow. 

27 

28This namespace exposes everything from 

29:mod:`wuttjamaican:wuttjamaican.db.model`, plus the following. 

30 

31Primary :term:`data models <data model>`: 

32 

33* :class:`~sideshow.db.model.stores.Store` 

34* :class:`~sideshow.db.model.orders.Order` 

35* :class:`~sideshow.db.model.orders.OrderItem` 

36* :class:`~sideshow.db.model.orders.OrderItemEvent` 

37* :class:`~sideshow.db.model.customers.LocalCustomer` 

38* :class:`~sideshow.db.model.products.LocalProduct` 

39* :class:`~sideshow.db.model.customers.PendingCustomer` 

40* :class:`~sideshow.db.model.products.PendingProduct` 

41 

42And the :term:`batch` models: 

43 

44* :class:`~sideshow.db.model.batch.neworder.NewOrderBatch` 

45* :class:`~sideshow.db.model.batch.neworder.NewOrderBatchRow` 

46""" 

47 

48# bring in all of wutta 

49from wuttjamaican.db.model import * 

50 

51# sideshow models 

52from .stores import Store 

53from .customers import LocalCustomer, PendingCustomer 

54from .products import LocalProduct, PendingProduct 

55from .orders import Order, OrderItem, OrderItemEvent 

56 

57# batch models 

58from .batch.neworder import NewOrderBatch, NewOrderBatchRow