adjust citysite table name to activesites

This commit is contained in:
Alberto-Audrix committed 2026-09-11 15:51:29 +07:00
1 parent fb0f996776
commit 64b37b6b6d
27 files changed
+382 -221

No files matched your search

+4 -4
View File
@@ -39,7 +39,7 @@ export type UserWrite = {
managed_by?: number | null;
};
export type CitySite = {
export type ActiveSite = {
id: number;
code: string;
name: string;
@@ -55,7 +55,7 @@ export type CitySite = {
updated_at: string;
};
export type CitySiteWrite = {
export type ActiveSiteWrite = {
code: string;
name: string;
api_base_url: string;
@@ -68,7 +68,7 @@ export type Site = {
site_name: string;
user: number;
owner_name?: string;
city_site?: number | null;
active_site?: number | null;
created_at: string;
updated_at: string;
};
@@ -106,7 +106,7 @@ export type Cycle = {
feed_initial_balance: number;
feed_initial_balance_date?: string | null;
status: CycleStatus;
city_site?: number | null;
active_site?: number | null;
source_cycle_id?: number | null;
proposed_end_date?: string | null;
close_requested_at?: string | null;