|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
-
-
-
-
-
-
-
-
- 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)
- projectUrl = db.Column(db.Text)
- repositoryUrl = 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)
- publisherUrl = db.Column(db.Text)
- zoteroUrl = 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)
|