Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / dashboard / model / bdd_dashboard / servicetopo.py @ 70c5f034

History | View | Annotate | Download (801 Bytes)

1 805cc54a Thomas ANDREJAK
# -*- coding: utf-8 -*-
2
"""Model For ServiceTopo Table"""
3
4
from sqlalchemy.orm import mapper, relation
5
from sqlalchemy import Table, ForeignKeyConstraint, Column
6
from sqlalchemy.types import Integer, String, Text, DateTime
7
8
from dashboard.model import metadata
9
10
11
# Generation par SQLAutoCode
12
13
servicetopo =  Table('servicetopo', metadata,
14
            Column(u'servicename', String(length=100, convert_unicode=False, assert_unicode=None), primary_key=True, nullable=False),
15
            Column(u'function', String(length=50, convert_unicode=False, assert_unicode=None), primary_key=False, nullable=False),
16
            ForeignKeyConstraint([u'servicename'], [u'servicehautniveau.servicename'], name=u'servicetopo_ibfk_1'),
17
    )
18
19
# Classe a mapper
20
21
class ServiceTopo(object):
22
        pass  
23
mapper(ServiceTopo,servicetopo)
24