Comment system for Hugo https://labertasche.tuxstash.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
1.1 KiB

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# /**********************************************************************************
# * _author : Domeniko Gentner
# * _mail : code@tuxstash.de
# * _repo : https://git.tuxstash.de/gothseidank/labertasche
# * _license : This project is under MIT License
# *********************************************************************************/
from labertasche.database import labertasche_db as db
class TProjects(db.Model):
# table name
__tablename__ = "t_projects"
__table_args__ = {'useexisting': True}
# primary key
id_project = db.Column(db.Integer, primary_key=True, autoincrement=True)
# data
name = db.Column(db.Text, nullable=False, unique=True)
blogurl = db.Column(db.Text, nullable=False, unique=False)
output = db.Column(db.Text, nullable=False, unique=True)
sendotp = db.Column(db.Boolean, nullable=False)
gravatar_cache = db.Column(db.Boolean, nullable=False)
gravatar_cache_dir = db.Column(db.Text, nullable=True)
gravatar_size = db.Column(db.Integer, nullable=True)
addon_smileys = db.Column(db.Boolean, nullable=False, default=True)