|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
-
-
-
-
-
-
-
-
- from flask_login import UserMixin
- from . import db
- from datetime import datetime
-
-
- class User(UserMixin, db.Model):
- __tablename__ = 'User'
-
- id = db.Column(db.Integer, primary_key=True)
- email = db.Column(db.String(100), unique=True)
- password = db.Column(db.String(100))
- name = db.Column(db.String(1000))
-
-
- class Resource(db.Model):
- __tablename__ = 'Resource'
-
-
- id = db.Column(db.Integer, primary_key=True)
- created = db.Column(db.DateTime, default=datetime.utcnow)
- type = db.Column(db.Text)
- name = db.Column(db.Text)
- description = db.Column(db.Text)
-
- developer = db.Column(db.Text)
- developerUrl = db.Column(db.Text)
- projectUrl = db.Column(db.Text)
- repositoryUrl = db.Column(db.Text)
- license = db.Column(db.Text)
- scriptingLanguage = db.Column(db.Text)
- expertiseToUse = db.Column(db.Text)
- expertiseToHost = db.Column(db.Text)
- dependencies = db.Column(db.Text)
- ingestFormats = db.Column(db.Text)
- outputFormats = db.Column(db.Text)
- status = db.Column(db.Text)
-
- longDescription = db.Column(db.Text)
- experimental = db.Column(db.Text)
- considerations = db.Column(db.Text)
- references = db.Column(db.Text)
-
- author = db.Column(db.Text)
- year = db.Column(db.Text)
- bookUrl = db.Column(db.Text)
- isbn = db.Column(db.Text)
- typology = db.Column(db.Text)
-
-
- class Relationship(db.Model):
- __tablename__ = 'Relationship'
-
- id = db.Column(db.Integer, primary_key=True)
- first_resource_id = db.Column(db.Integer)
- second_resource_id = db.Column(db.Integer)
|