Coverage for seedboxsync/core/database/models/seedboxsync.py: 100%
5 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
1#
2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr>
3#
4# For the full copyright and license information, please view the LICENSE
5# file that was distributed with this source code.
6#
7"""Peewee DAO model for SeedboxSync."""
9from peewee import CharField, TextField
10from seedboxsync.core.database.models import SeedboxSyncModel
13class SeedboxSync(SeedboxSyncModel):
14 """
15 Data Access Object (DAO) for application metadata and internal configuration.
17 This table stores key-value pairs used for SeedboxSync's internal state
18 management and configuration, such as taskstatus, versioning, or runtime
19 parameters.
21 Attributes:
22 key (str): Unique identifier for the configuration entry.
23 value (str): Stored value associated with the key.
24 """
26 key = CharField(primary_key=True, help_text="Unique identifier for the configuration entry")
27 value = TextField(help_text="Value associated with the configuration entry")