2023-01-06 16:27:42 +00:00
|
|
|
// accounting_timestamps just allows us to save the last time/thing that happened
|
|
|
|
model accounting_timestamps (
|
|
|
|
key name
|
|
|
|
|
|
|
|
field name text
|
|
|
|
field value timestamp ( updatable )
|
|
|
|
)
|
|
|
|
|
2022-12-15 19:22:18 +00:00
|
|
|
create accounting_timestamps ( noreturn, replace )
|
2023-01-06 16:27:42 +00:00
|
|
|
update accounting_timestamps (
|
|
|
|
where accounting_timestamps.name = ?
|
|
|
|
noreturn
|
|
|
|
)
|
|
|
|
|
|
|
|
read scalar (
|
|
|
|
select accounting_timestamps.value
|
|
|
|
where accounting_timestamps.name = ?
|
|
|
|
)
|