mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
add simple editor UI and backend
This commit is contained in:
19
editor/server/models.py
Normal file
19
editor/server/models.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
from sqlalchemy import (
|
||||
Column,
|
||||
DateTime,
|
||||
Integer,
|
||||
JSON,
|
||||
String,
|
||||
func,
|
||||
)
|
||||
|
||||
from . import db
|
||||
|
||||
|
||||
class Item(db.Model):
|
||||
id = Column(Integer, primary_key=True, autoincrement=True, nullable=False)
|
||||
name = Column(String(255), unique=True, nullable=False, index=True)
|
||||
params = Column(JSON, nullable=False)
|
||||
time_created = Column(DateTime(timezone=True), server_default=func.now())
|
||||
Reference in New Issue
Block a user