openlp/openlp/plugins/audit/lib/tables.py

38 lines
2.2 KiB
Python
Raw Normal View History

2009-09-22 19:37:36 +00:00
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# --------------------------------------------------------------------------- #
# Copyright (c) 2008-2009 Raoul Snyman #
# Portions copyright (c) 2008-2009 Martin Thompson, Tim Bentley, Carsten #
# Tinggaard, Jon Tibble, Jonathan Corwin, Maikel Stuivenberg, Scott Guerrieri #
# --------------------------------------------------------------------------- #
# This program is free software; you can redistribute it and/or modify it #
# under the terms of the GNU General Public License as published by the Free #
# Software Foundation; version 2 of the License. #
# #
# This program is distributed in the hope that it will be useful, but WITHOUT #
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
# more details. #
# #
# You should have received a copy of the GNU General Public License along #
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
###############################################################################
from sqlalchemy import Column, Table, ForeignKey, types
from openlp.plugins.audit.lib.meta import metadata
2009-09-23 15:51:03 +00:00
# Definition of the "songs" table
2009-09-23 15:57:38 +00:00
audit_table = Table(u'audit_data', metadata,
2009-09-23 15:51:03 +00:00
Column(u'id', types.Integer(), primary_key=True),
2009-09-23 15:57:38 +00:00
Column(u'auditdate', types.Date, index=True, nullable=False),
Column(u'audittime', types.Time, index=True, nullable=False),
2009-09-23 15:51:03 +00:00
Column(u'title', types.Unicode(255), nullable=False),
2009-09-23 15:57:38 +00:00
Column(u'authors', types.UnicodeText, nullable=False),
Column(u'ccl_id', types.Unicode(65), nullable=False)
2009-09-22 19:37:36 +00:00
)