a n7Ma@slddlmZddlmZddlmZGdddejZGdddejZGdd d eZ Gd d d eZ d S) )models)PostgresPartitioningMethod)PostgresPartitionedModelc@sBeZdZejddZejdddZejdddZejdddZ dS)CustomerFnull2 max_lengthrN) __name__ __module__ __qualname__r UUIDFielduuid CharField first_name last_nameaddressrrS/Users/birayaha/postgres-lightweight-locks-simulator/django_app/logistics/models.pyrs rc@sBeZdZejddZejdddZejdddZejdddZ dS)MerchantFrrr r N) r r rrrrrnamerlicenserrrrr s rc@sneZdZGdddZejddZejddZejddZ ejddZ ej dej ddZ ej dej ddZd S) Orderc@seZdZejZdgZdS)zOrder.PartitioningMeta created_atNr r rrRANGEmethodkeyrrrrPartitioningMetasr FrrT) on_deleterrN)r r rr rrr DateFieldr updated_atproduct ForeignKeyCASCADEZmerchantZcustomerrrrrrs    rc@sfeZdZGdddZejddZejddZej dddZ ej dddZ ejddZ ej ddZdS) Deliveryc@seZdZejZdgZdS)zDelivery.PartitioningMetarNrrrrrr sr Frrr TN)r r rr rrrr"rrrstatusr#BigIntegerFieldZorder_idrrrrr's   r'N) django.dbrpsqlextra.typesrZpsqlextra.modelsrModelrrrr'rrrrs