Skip to main content
The favorite attribute indicates whether the bottle is the favorite of the particular user. The user will have only one favorite bottle, in case of updating a record with favorite, all the other bottles will be set to false status.

Primary key

document_id
uuiddefault:"Random UUID"publicrequired
The unique identifier for the MaihueStreet user bottle record.

Specific attributes

capacity
decimalpublicrequired
The capacity of the user’s bottle.
Rules: Precision: 6, Scale: 0
favorite
booleandefault:"false"publicrequired
Indicates whether this bottle is marked as a favorite by the user.
name
varcharpublicrequired
The name given to the user’s bottle.
Rules: Max length: 100 characters

Foreign keys

bottle
uuidpublicrequired
The unique identifier of the associated bottle. Ref: MaihueStreetBottle Schema
user
uuidpublic
The unique identifier of the associated user. Ref: User Schema
user_alias
uuidpublic
The unique identifier of the associated user alias. Ref: MaihueStreetUserAlias Schema

Tracking attributes

created_at
timestamppublic
The timestamp when the MaihueStreet user bottle record was created.
Rules: Precision: 6, with timezone
deleted_at
timestamppublic
The timestamp when the MaihueStreet user bottle record was deleted, if applicable.
Rules: Precision: 6, with timezone
is_actived
booleandefault:"true"public
Indicates whether the MaihueStreet user bottle record is active.
is_deleted
booleandefault:"false"public
Indicates whether the MaihueStreet user bottle record has been deleted.
updated_at
timestamppublic
The timestamp when the MaihueStreet user bottle record was last updated.
Rules: Precision: 6, with timezone