crunk
7 months ago
17 changed files with 40 additions and 23 deletions
@ -0,0 +1,17 @@ |
|||||
|
from app import db |
||||
|
|
||||
|
|
||||
|
class DistribusiFiles(db.Model): |
||||
|
"""Distribusi file model class for a single file in a distribusi""" |
||||
|
|
||||
|
__tablename__ = "distribusi_files" |
||||
|
|
||||
|
id = db.Column(db.Integer, primary_key=True) |
||||
|
type = db.Column(db.String(300), nullable=False, unique=True) |
||||
|
distribusi = db.Column(db.Integer, db.ForeignKey("distribusis.id")) |
||||
|
path = db.Column(db.String(4096), nullable=True, unique=False) |
||||
|
description = db.Column(db.String(9), nullable=True, unique=False) |
||||
|
tags = db.Column(db.String(500), nullable=True, unique=False) |
||||
|
|
||||
|
def __repr__(self): |
||||
|
return "<Distribusi_File %r>" % self.distribusiname |
Loading…
Reference in new issue