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

5 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-09 12:50 -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 

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.orders.Order` 

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

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

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

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

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

39 

40And the :term:`batch` models: 

41 

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

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

44""" 

45 

46# bring in all of wutta 

47from wuttjamaican.db.model import * 

48 

49# sideshow models 

50from .customers import LocalCustomer, PendingCustomer 

51from .products import LocalProduct, PendingProduct 

52from .orders import Order, OrderItem 

53 

54# batch models 

55from .batch.neworder import NewOrderBatch, NewOrderBatchRow