Coverage for src/sideshow/db/model/__init__.py: 100%

5 statements  

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

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.PendingCustomer` 

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

37 

38And the :term:`batch` models: 

39 

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

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

42""" 

43 

44# bring in all of wutta 

45from wuttjamaican.db.model import * 

46 

47# sideshow models 

48from .customers import PendingCustomer 

49from .products import PendingProduct 

50from .orders import Order, OrderItem 

51 

52# batch models 

53from .batch.neworder import NewOrderBatch, NewOrderBatchRow