mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.0
This commit is contained in:
1 parent
85969350bc
commit
a8d9727527
7 files changed
+110
-16
No files matched your search
+9
-2
@@ -8,9 +8,16 @@ class User(UserMixin, db.Model):
|
||||
is_admin = db.Column(db.Boolean(),default=False)
|
||||
dat_last = db.Column(db.DateTime())
|
||||
|
||||
class Prefix(db.Model):
|
||||
class Network(db.Model):
|
||||
id = db.Column(db.Integer(),primary_key=True,unique=True)
|
||||
prefix = db.Column(db.Integer())
|
||||
network_address = db.Column(db.String(16),unique=True)
|
||||
hosts = db.Column(db.Integer())
|
||||
description = db.Column(db.String(32),unique=True)
|
||||
description = db.Column(db.String(32),unique=True)
|
||||
|
||||
class Allocation(db.Model):
|
||||
ipv4 = db.Column(db.String(16),primary_key=True,unique=True)
|
||||
net_id = db.Column(db.Integer(),db.ForeignKey('network.id'))
|
||||
hardware_id = db.Column(db.Integer())
|
||||
hostname = db.Column(db.String(32),unique=True)
|
||||
description = db.Column(db.String(64))
|
||||
Reference in new issue
Block a user