9
0
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:
Anthony Donlon
2025-11-20 07:24:19 +08:00
parent f6b2947ec5
commit 4c6571d2f8
10 changed files with 1193 additions and 6 deletions

19
editor/server/models.py Normal file
View 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())