Remove comments from Fields model

This commit is contained in:
Kevin Chung
2020-08-18 14:19:29 -04:00
parent f18a8e4010
commit beaea4f1d2

View File

@@ -800,26 +800,12 @@ class PageComments(Comments):
class Fields(db.Model):
__tablename__ = "fields"
id = db.Column(db.Integer, primary_key=True)
# Name of the field. Used as label.
name = db.Column(db.Text)
# What type of field it is (user or team)
type = db.Column(db.String(80), default="standard")
# The actual type of field (text, boolean)
field_type = db.Column(db.String(80))
# Help text used for the input
description = db.Column(db.Text)
# Required on form submission
required = db.Column(db.Boolean, default=False)
# show_on_profile
public = db.Column(db.Boolean, default=False)
# User can edit this field in settings. All fields should be edittable by an admin
editable = db.Column(db.Boolean, default=False)
__mapper_args__ = {"polymorphic_identity": "standard", "polymorphic_on": type}