source: rattail/rattail/db/model/__init__.py @ d571811

Last change on this file since d571811 was d571811, checked in by Lance Edgar <lance@…>, 8 months ago

Add basic Member table

plus contact info, via ORM magic

  • Property mode set to 100644
File size: 3.4 KB
Line 
1# -*- coding: utf-8; -*-
2################################################################################
3#
4#  Rattail -- Retail Software Framework
5#  Copyright © 2010-2017 Lance Edgar
6#
7#  This file is part of Rattail.
8#
9#  Rattail is free software: you can redistribute it and/or modify it under the
10#  terms of the GNU General Public License as published by the Free Software
11#  Foundation, either version 3 of the License, or (at your option) any later
12#  version.
13#
14#  Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
15#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16#  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17#  details.
18#
19#  You should have received a copy of the GNU General Public License along with
20#  Rattail.  If not, see <http://www.gnu.org/licenses/>.
21#
22################################################################################
23"""
24Rattail data models
25"""
26
27from __future__ import unicode_literals, absolute_import
28
29from .core import Base, ModelBase, uuid_column, getset_factory, GPCType, Setting, Change, Note
30from .contact import PhoneNumber, EmailAddress, MailingAddress
31
32from .people import Person, PersonPhoneNumber, PersonEmailAddress, PersonMailingAddress, PersonNote
33from .users import Role, Permission, User, UserRole, UserEvent
34from .stores import Store, StorePhoneNumber, StoreEmailAddress
35from .customers import (Customer, CustomerPhoneNumber, CustomerEmailAddress, CustomerMailingAddress,
36                        CustomerGroup, CustomerGroupAssignment, CustomerPerson)
37from .members import Member, MemberPhoneNumber, MemberEmailAddress, MemberMailingAddress
38
39from .org import Department, Subdepartment, Category, Family, ReportCode, DepositLink
40from .employees import (Employee, EmployeePhoneNumber, EmployeeEmailAddress,
41                        EmployeeStore, EmployeeDepartment, EmployeeHistory)
42from .shifts import ScheduledShift, WorkedShift
43
44from .vendors import Vendor, VendorPhoneNumber, VendorEmailAddress, VendorContact
45from .products import (Brand, Tax, Product, ProductImage, ProductCode,
46                       ProductCost, ProductFutureCost, ProductPrice,
47                       ProductInventory, ProductStoreInfo, InventoryAdjustmentReason)
48from .purchase import (PurchaseBase, PurchaseItemBase, PurchaseCreditBase,
49                       Purchase, PurchaseItem, PurchaseCredit)
50
51from .custorders import CustomerOrder, CustomerOrderItem, CustomerOrderItemEvent
52
53from .messages import Message, MessageRecipient
54
55from .datasync import DataSyncChange
56from .labels import LabelProfile
57from .bouncer import EmailAttempt, EmailBounce
58from .tempmon import TempmonClient, TempmonProbe, TempmonReading
59from .upgrades import Upgrade, UpgradeRequirement
60
61from .exports import ExportMixin
62from .reports import ReportOutput
63from .batch import BatchMixin, BaseFileBatchMixin, FileBatchMixin, BatchRowMixin, ProductBatchRowMixin
64from .batch.dynamic import DynamicBatchMixin, ImporterBatch
65from .batch.handheld import HandheldBatch, HandheldBatchRow
66from .batch.inventory import InventoryBatch, InventoryBatchRow
67from .batch.labels import LabelBatch, LabelBatchRow
68from .batch.pricing import PricingBatch, PricingBatchRow
69from .batch.purchase import PurchaseBatch, PurchaseBatchRow, PurchaseBatchRowClaim, PurchaseBatchCredit
70from .batch.vendorcatalog import VendorCatalog, VendorCatalogRow
71from .batch.vendorinvoice import VendorInvoice, VendorInvoiceRow
Note: See TracBrowser for help on using the repository browser.