mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
Initial Commit
This commit is contained in:
93
dns/models.py
Normal file
93
dns/models.py
Normal file
@@ -0,0 +1,93 @@
|
||||
# This is an auto-generated Django model module.
|
||||
# You'll have to do the following manually to clean this up:
|
||||
# * Rearrange models' order
|
||||
# * Make sure each model has one field with primary_key=True
|
||||
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
|
||||
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
|
||||
# Feel free to rename the models, but don't rename db_table values or field names.
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from loginSystem.models import Administrator
|
||||
|
||||
|
||||
class Domains(models.Model):
|
||||
admin = models.ForeignKey(Administrator,on_delete=models.CASCADE)
|
||||
name = models.CharField(unique=True, max_length=255)
|
||||
master = models.CharField(max_length=128, blank=True, null=True)
|
||||
last_check = models.IntegerField(blank=True, null=True)
|
||||
type = models.CharField(max_length=6)
|
||||
notified_serial = models.IntegerField(blank=True, null=True)
|
||||
account = models.CharField(max_length=40, blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'domains'
|
||||
|
||||
|
||||
class Records(models.Model):
|
||||
domainOwner = models.ForeignKey(Domains, on_delete=models.CASCADE)
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
domain_id = models.IntegerField(blank=True, null=True)
|
||||
name = models.CharField(max_length=255, blank=True, null=True)
|
||||
type = models.CharField(max_length=10, blank=True, null=True)
|
||||
content = models.CharField(max_length=64000, blank=True, null=True)
|
||||
ttl = models.IntegerField(blank=True, null=True)
|
||||
prio = models.IntegerField(blank=True, null=True)
|
||||
change_date = models.IntegerField(blank=True, null=True)
|
||||
disabled = models.IntegerField(blank=True, null=True)
|
||||
ordername = models.CharField(max_length=255, blank=True, null=True)
|
||||
auth = models.IntegerField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'records'
|
||||
|
||||
|
||||
class Comments(models.Model):
|
||||
domain_id = models.IntegerField()
|
||||
name = models.CharField(max_length=255)
|
||||
type = models.CharField(max_length=10)
|
||||
modified_at = models.IntegerField()
|
||||
account = models.CharField(max_length=40)
|
||||
comment = models.CharField(max_length=64000)
|
||||
|
||||
class Meta:
|
||||
db_table = 'comments'
|
||||
|
||||
|
||||
class Cryptokeys(models.Model):
|
||||
domain_id = models.IntegerField()
|
||||
flags = models.IntegerField()
|
||||
active = models.IntegerField(blank=True, null=True)
|
||||
content = models.TextField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'cryptokeys'
|
||||
|
||||
|
||||
class Domainmetadata(models.Model):
|
||||
domain_id = models.IntegerField()
|
||||
kind = models.CharField(max_length=32, blank=True, null=True)
|
||||
content = models.TextField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'domainmetadata'
|
||||
|
||||
|
||||
class Supermasters(models.Model):
|
||||
ip = models.CharField(primary_key=True, max_length=64)
|
||||
nameserver = models.CharField(max_length=255)
|
||||
account = models.CharField(max_length=40)
|
||||
|
||||
class Meta:
|
||||
db_table = 'supermasters'
|
||||
unique_together = (('ip', 'nameserver'),)
|
||||
|
||||
|
||||
class Tsigkeys(models.Model):
|
||||
name = models.CharField(max_length=255, blank=True, null=True)
|
||||
algorithm = models.CharField(max_length=50, blank=True, null=True)
|
||||
secret = models.CharField(max_length=255, blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'tsigkeys'
|
||||
unique_together = (('name', 'algorithm'),)
|
||||
Reference in New Issue
Block a user