File: models.py

package info (click to toggle)
python-django-pgschemas 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 848 kB
  • sloc: python: 3,887; makefile: 33; sh: 10; sql: 2
file content (13 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.contrib.auth import get_user_model
from django.db import models


class TenantData(models.Model):
    catalog = models.ForeignKey(
        "shared_public.Catalog", on_delete=models.CASCADE, related_name="tenant_objects"
    )
    user = models.ForeignKey(
        get_user_model(), on_delete=models.CASCADE, related_name="tenant_objects"
    )

    active = models.BooleanField(default=True)