mirror of https://github.com/kianby/stacosys
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
306 B
Python
17 lines
306 B
Python
10 years ago
|
#!/usr/bin/python
|
||
|
# -*- coding: UTF-8 -*-
|
||
|
|
||
|
from peewee import Model
|
||
|
from peewee import CharField
|
||
7 years ago
|
from core.database import get_db
|
||
10 years ago
|
|
||
|
|
||
|
class Site(Model):
|
||
|
name = CharField(unique=True)
|
||
|
url = CharField()
|
||
|
token = CharField()
|
||
10 years ago
|
admin_email = CharField()
|
||
10 years ago
|
|
||
|
class Meta:
|
||
|
database = get_db()
|