com.pimstash.stuff.thing
A Thing in a Stuff Trove. A shared field (name, category, make, model, measure, lifespanMonths, usageUnit, ratedUsage, photo) is absent, never null, to inherit the Kind's.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | stuff.pimstash.com |
| Commit rev | 3mzxzibbal72l |
| Indexed |
Record
record · key anyProperties
How much of the Thing there is, read by measure, as a decimal string ("2.375") so it round-trips exactly.
maxLength: 64
category
stringmaxLength: 1000maxGraphemes: 100
conditionPct
integerCondition, 0–100, set by an Inspection.
minimum: 0maximum: 100
currency
stringISO 4217 code.
minLength: 3maxLength: 3
expiresOn
string · datetimeThe calendar date the Thing expires, entered directly; wins over one derived from lifespanMonths, as a datetime at UTC midnight read in UTC.
inServiceOn
string · datetimeThe calendar date the Thing went into service, as a datetime at UTC midnight read in UTC.
kind
string · record-keyThe record key of the com.pimstash.stuff.kind, in this same Space, this Thing is one of.
lentDueOn
string · datetimeThe calendar date the Loan is due back, as a datetime at UTC midnight read in UTC.
lentOn
string · datetimeThe calendar date the Loan began, as a datetime at UTC midnight read in UTC.
lentTo
stringWho has it on Loan. Set together with lentOn.
maxLength: 1000maxGraphemes: 100
lifespanMonths
integerMonths of service before the Thing is due for replacement.
minimum: 1
links
arraymaxLength: 100
maxLength: 3000
location
string · record-keyThe record key of the com.pimstash.stuff.location, in this same Space, this Thing is kept in.
make
stringmaxLength: 1000maxGraphemes: 100
measure
stringHow the amount is read. Absent on a Thing inherits the Kind's; absent on a Kind reads as quantity.
maxLength: 64knownValues: quantity | count | level
model
stringmaxLength: 1000maxGraphemes: 100
name
stringAbsent shows the Kind's name; a Thing without a Kind has one.
maxLength: 1000maxGraphemes: 100
notes
stringmaxLength: 10000maxGraphemes: 1000
photo
blobmaxSize: 1000000accept: image/jpeg, image/webp, image/avif
priceMinor
integerThe total paid for the whole Thing, in the currency's minor unit (cents, pence, whole yen).
minimum: 0
purchasedOn
string · datetimeThe calendar date of purchase, as a datetime at UTC midnight read in UTC.
ratedUsage
stringUsage the Thing is rated for, in usageUnit, as a decimal string ("2.375") so it round-trips exactly.
maxLength: 64
retiredAt
string · datetimeWhen the Thing left service. Set together with retiredReason.
retiredReason
stringmaxLength: 64knownValues: sold | donated | discarded | lost | used_up | other
serial
stringmaxLength: 1000maxGraphemes: 100
tags
arraymaxLength: 100
maxLength: 1000maxGraphemes: 100
updatedAt
string · datetimeusage
stringUsage so far, in usageUnit, as a decimal string ("2.375") so it round-trips exactly.
maxLength: 64
usageUnit
stringmaxLength: 1000maxGraphemes: 100
vendor
stringmaxLength: 1000maxGraphemes: 100
warrantyUntil
string · datetimeThe calendar date the warranty runs to, as a datetime at UTC midnight read in UTC.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
com.pimstash.stuff.kind
recordA Kind in a Stuff Trove: the fields its Things share unless a Thing sets its own.
-
com.pimstash.stuff.event
recordAn Event in a Stuff Thing's History. Its kind is its payload's type; a payload type this client does not know is kept and listed as an unknown Event. The author is the repository the record sits in, so there is no actor field.