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
Kindrecord
Record keyany
Authoritystuff.pimstash.com
Commit rev3mzxzibbal72l
Indexed

Record

record · key any

Properties

amount

requiredstring

How much of the Thing there is, read by measure, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

category

string
  • maxLength: 1000
  • maxGraphemes: 100

Condition, 0–100, set by an Inspection.

  • minimum: 0
  • maximum: 100

createdAt

requiredstring · datetime

currency

string

ISO 4217 code.

  • minLength: 3
  • maxLength: 3

expiresOn

string · datetime

The calendar date the Thing expires, entered directly; wins over one derived from lifespanMonths, as a datetime at UTC midnight read in UTC.

inServiceOn

string · datetime

The calendar date the Thing went into service, as a datetime at UTC midnight read in UTC.

kind

string · record-key

The record key of the com.pimstash.stuff.kind, in this same Space, this Thing is one of.

lentDueOn

string · datetime

The calendar date the Loan is due back, as a datetime at UTC midnight read in UTC.

lentOn

string · datetime

The calendar date the Loan began, as a datetime at UTC midnight read in UTC.

lentTo

string

Who has it on Loan. Set together with lentOn.

  • maxLength: 1000
  • maxGraphemes: 100

Months of service before the Thing is due for replacement.

  • minimum: 1

location

string · record-key

The record key of the com.pimstash.stuff.location, in this same Space, this Thing is kept in.

make

string
  • maxLength: 1000
  • maxGraphemes: 100

measure

string

How the amount is read. Absent on a Thing inherits the Kind's; absent on a Kind reads as quantity.

  • maxLength: 64
  • knownValues: quantity | count | level

model

string
  • maxLength: 1000
  • maxGraphemes: 100

name

string

Absent shows the Kind's name; a Thing without a Kind has one.

  • maxLength: 1000
  • maxGraphemes: 100

notes

string
  • maxLength: 10000
  • maxGraphemes: 1000

photo

blob
  • maxSize: 1000000
  • accept: image/jpeg, image/webp, image/avif

priceMinor

integer

The total paid for the whole Thing, in the currency's minor unit (cents, pence, whole yen).

  • minimum: 0

purchasedOn

string · datetime

The calendar date of purchase, as a datetime at UTC midnight read in UTC.

Usage the Thing is rated for, in usageUnit, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

retiredAt

string · datetime

When the Thing left service. Set together with retiredReason.

  • maxLength: 64
  • knownValues: sold | donated | discarded | lost | used_up | other

serial

string
  • maxLength: 1000
  • maxGraphemes: 100

tags

array
  • maxLength: 100
itemsstring
  • maxLength: 1000
  • maxGraphemes: 100

updatedAt

string · datetime

usage

string

Usage so far, in usageUnit, as a decimal string ("2.375") so it round-trips exactly.

  • maxLength: 64

usageUnit

string
  • maxLength: 1000
  • maxGraphemes: 100

vendor

string
  • maxLength: 1000
  • maxGraphemes: 100

warrantyUntil

string · datetime

The calendar date the warranty runs to, as a datetime at UTC midnight read in UTC.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A Kind in a Stuff Trove: the fields its Things share unless a Thing sets its own.

  • An 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.