|
-
-
-
-
-
-
-
-
- from flask_login import UserMixin
- from . import db
- from . import ma
- from datetime import datetime
- from marshmallow import Schema
-
-
- 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)
-
- experimental = db.Column(db.Text)
- lessonsLearned = 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)
-
-
- 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)
|