Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- # Create your models here.
- from tenant_schemas.models import TenantMixin
- class Client(TenantMixin):
- name = models.CharField(max_length=100)
- paid_until = models.DateField()
- on_trial = models.BooleanField()
- created_on = models.DateField(auto_now_add=True)
- # default true, schema will be automatically created and synced when it is saved
- auto_create_schema = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement