Models#
- class Bank.models.Customer(*args, **kwargs)#
Customer Class
- Parameters:
nr (IntegerField) – Primary key: Nr
name (TextField) – Name
balance (IntegerField) – Balance
credits (IntegerField) – Credits
Reverse relationships:
- Parameters:
action_customer (Reverse
ForeignKey
fromAction
) – All action customer of this customer (related name ofcustomer
)action_related (Reverse
ForeignKey
fromAction
) – All action related of this customer (related name ofrelated
)
- class Bank.models.Action(*args, **kwargs)#
Action Class
- Parameters:
id (IntegerField) – Primary key: Id
date (DateTimeField) – Date
type (TextField) – Type
amount (IntegerField) – Amount
before (IntegerField) – Before
Relationship fields:
- Parameters:
customer (
ForeignKey
toCustomer
) – Customer (related name:action_customer
)related (
ForeignKey
toCustomer
) – Related (related name:action_related
)