Train's server syncs with serverpod_offline_sync as Learn's does, and holds three synced tables, every payload sealed on the devices: content_key (the person's data key, sealed to the account), workout (its type, times, name and totals, changed when edited) and workout_series (chunks of a workout's samples, written once). A person's space goes with them, with everything in it. The migration only adds: the three tables, each indexed on spaceId and cascading with its space (a series also with its workout), and the sync engine's own tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: halkyon_train_server
|
|
description: Halkyon Train's server.
|
|
publish_to: none
|
|
|
|
environment:
|
|
sdk: '^3.13.0'
|
|
|
|
resolution: workspace
|
|
|
|
dependencies:
|
|
clock: ^1.1.3
|
|
# What every Halkyon server has (ADR 0014): signing in, the account and its
|
|
# deletion, pruning, the instance's basics. A Serverpod module among the
|
|
# repository's shared packages.
|
|
halkyon_base_server:
|
|
path: ../../../packages/halkyon_base_server
|
|
serverpod: 4.0.4
|
|
serverpod_auth_idp_server: 4.0.4
|
|
serverpod_offline_sync_server: 0.0.10
|
|
|
|
dev_dependencies:
|
|
serverpod_test: 4.0.4
|
|
test: ^1.25.5
|
|
|
|
serverpod:
|
|
# Companion Flutter apps that `serverpod start` can launch (Ctrl+R), keyed
|
|
# by a display alias. The default device is the web server, opening the
|
|
# machine's default browser when ready. All non-reserved properties are
|
|
# forwarded to `flutter run`. For the best IDE debugging experience, use
|
|
# `chrome` or a native target as the device. See the example below:
|
|
#
|
|
# Admin:
|
|
# path: ../apps/admin_flutter
|
|
# displayName: "Admin app"
|
|
# auto_launch: true
|
|
# device: chrome
|
|
# target: lib/main.dart
|
|
# web-hostname: 0.0.0.0
|
|
# web-port: 8090
|
|
# release: true
|
|
# pub: false
|
|
# dart-define:
|
|
# API_URL=https://admin.example.com
|
|
# FLAVOR=production
|
|
flutter_apps:
|
|
halkyon_train:
|
|
path: ../halkyon_train_flutter
|
|
displayName: "Halkyon Train"
|
|
auto_launch: true
|
|
target: lib/driver.dart
|