Table descriptions

Plants

Column nameData typeExampleAdditional information
idinteger355PRIMARY KEY
unique_nametextAllium schoenoprasumNOT NULL
common_name_entext[]{chives}
common_name_detext[]{schnittlauch}
familytextAlliaceae
edible_uses_entextNULL
functionstextNULL
heat_zonesmallintNULL
shadeshadelight shade
soil_phsoil_ph[]{acid}
soil_texturesoil_texture[]{sandy,loamy,clay}
ecosystem_nichetextNULL
deciduous_or_evergreendeciduous_or_evergreenNULL
herbaceous_or_woodyherbaceous_or_woodyherbaceous
life_cyclelife_cycle[]{perennial}
growth_rategrowth_rate[]{moderate}
heightinteger30
fertilityfertility[]{"self fertile"}
created_attimestamp without time zone2024-05-31 12:03:49.820927NOT NULL, defaults to current time
updated_attimestamp without time zone2024-05-31 12:03:49.820927NOT NULL, defaults to current time
has_drought_tolerancebooleanfalse
tolerates_windbooleanNULL
preferable_permaculture_zonesmallintNULL-1..6 (-1 should be printed as 00)
hardiness_zonetext[3,12)
light_requirementlight_requirement[]{"full sun","partial sun/shade"}
water_requirementwater_requirement[]{moist}
propagation_methodpropagation_method[]{"seed - direct sow","seed - transplant",division}
alternate_nametextWild chives, Flowering onion
ediblebooleantrue
edible_partstext[]{bulb,flowers,leaves,root}
spreadinteger30
warningtextNULL
versionsmallint24
external_sourceexternal_sourcepermapeople
sowing_outdoorssmallint[]NULL
harvest_timesmallint[]NULL
seed_weight_1000double precisionNULL

Relations

Store relations between plants.

Column nameData typeExampleAdditional information
plant1integer355PRIMARY KEY, FOREIGN KEY to plants.id, id of first plant
plant2integer1920PRIMARY KEY, FOREIGN KEY to plants.id, id of second plant
relationrelation_typecompanionNOT NULL, type of relation
notetextImported via scrapercomment about the relation

Maps

Column nameData typeExampleAdditional information
idinteger1PRIMARY KEY
nametextMy MapNOT NULL, only alphanumerical values
deletion_datedate2024-04-04
last_visitdate2023-04-04
is_inactivebooleanfalseNOT NULL
zoom_factorsmallint100NOT NULL, value used in formula "X by X cm",
e.g. 100 would mean "100 x 100 cm", range from 10 to 100000
honorssmallint0NOT NULL, 0 to infinity
visitssmallint0NOT NULL, 0 to infinity
harvestedsmallint0NOT NULL, 0 to infinity, amount of plants harvested on this map
privacyprivacy_optionprotectedNOT NULL
descriptiontextOur first map
locationgeographyNULLPostGIS Geodata, location of the map
geometrygeometry0103000020E61000000100...NOT NULL, boundaries of the map
created_byuuidaffb3987-0d75-42b8-b34a-cf7eec4e151bNOT NULL, is also the map owner
creation_attimestamp2023-04-04 10:11:12NOT NULL, defaults to current time
modified_byuuidaffb3987-0d75-42b8-b34a-cf7eec4e151bNOT NULL
modified_attimestamp2023-04-04 10:11:12NOT NULL, defaults to current time

Seeds

Column nameData typeExampleAdditional information
idinteger1PRIMARY KEY
nametextSome tomato seedsNOT NULL, at least 1 alphanumeric character, no dashes
harvest_yearsmallint2018NOT NULL
use_bydate2028
origintextVienna, Austria
tastetextSweet
yieldtexthigh
quantityquantitymore than enoughNOT NULL
qualityqualityOrganic
pricesmallint10.99
generationsmallint7
notestextNULL
plant_idinteger5557NOT NULL, FOREIGN KEY to plants.id
created_byuuidaffb3987-0d75-42b8-b34a-cf7eec4e151bNOT NULL
archived_attimestampNULL

Layers

Column nameData typeExampleAdditional information
iduuid9b77d9b1-02c3-4fac-97bf-686b9f4ea38dPRIMARY KEY
map_idinteger1NOT NULL, FOREIGN KEY to maps.id
typelayer_typeplantsNOT NULL
nametextPlants LayerNOT NULL
is_alternativebooleanfalseNOT NULL, true if the layer is an user-created alternative layer
mark_deletedtimestampNULL
order_indexinteger1NOT NULL

Plantings

A single plant or an area of plants that has been placed on a map.

Column nameData typeExampleAdditional information
iduuid440d518c-dc50-4ff3-9943-9f578a1b7e7dPRIMARY KEY
plant_idinteger355NOT NULL, FOREIGN KEY to plants.id
is_areabooleanfalseNOT NULL, true if the planting is an area of plants
instead of a single plant
xinteger714NOT NULL, x coordinate on map
yinteger538NOT NULL, y coordinate on map
size_xinteger30NOT NULL, size on x-axis on map
size_yinteger30NOT NULL, size on y-axis on map
rotationreal0NOT NULL, rotation on map
add_datedate2024-03-01Date when the plant was planted
remove_datedateNULLDate when the plant was removed
seed_idintegerNULLFOREIGN KEY to seeds.id
notestextNULLNOT NULL
created_attimestamp2024-01-01 10:11:12NOT NULL, defaults to current time
modified_attimestamp2024-01-01 10:11:12NOT NULL, defaults to current time
created_byuuidaffb3987-0d75-42b8-b34a-cf7eec4e151bNOT NULL
modified_byuuidaffb3987-0d75-42b8-b34a-cf7eec4e151bNOT NULL
layer_iduuidb8e3ea1c-5432-459b-a9c9-736a29ea60f0NOT NULL, FOREIGN KEY to layer.id

Users

Column nameData typeExampleAdditional information
iduuid00000000-0000-0000-0000-000000000000NOT NULL, PRIMARY KEY, the UUID from Keycloak
salutationsalutationMrNOT NULL
titletextNULL
countrytextAustriaNOT NULL
phonetextNULL
websitetextNULL
organizationtextNULL
experienceexperiencebeginner
membershipmembershipcontributing
member_yearsinteger[]{2023}years of active membership
member_sincedate2023-07-12
permacoinsinteger[]{0}array of positive integers

Guided Tours

Column nameData typeExampleAdditional information
useruuid00000000-0000-0000-0000-000000000000PRIMARY KEY
editor_tour_completedbooleanfalsehas the user completed the Map Editor Tour

Blossoms

Column nameData typeExampleAdditional information
titletextNovice GardenerPRIMARY KEY
descriptiontextPlant your first plant
tracktrackBeginners Trackthe track (category) this blossom belongs to
icontextNULL
is_seasonalbooleanfalseNOT NULL, if blossom resets and repeats every year

Gained Blossoms

Column nameData typeExampleAdditional information
user_iduuid00000000-0000-0000-0000-000000000000PRIMARY KEY
blossomtext1PRIMARY KEY
times_gainedinteger1NOT NULL, 0 to infinity
gained_datedate2023-04-10NOT NULL

Base Layer Images

Column nameData typeExampleAdditional information
iduuidae245486-fe22-4e59-aed8-d5981d245d1cPRIMARY KEY
pathtext/Photos/Vineyard.jpgNOT NULL
rotationreal0NOT NULL
scalereal100NOT NULL
layer_iduuide09a5af0-2f84-4cef-ae75-8bcc66862be3NOT NULL, FOREIGN KEY to layers.id

Drawings

Column nameData typeExampleAdditional information
iduuidae245486-fe22-4e59-aed8-d5981d245d1cPRIMARY KEY
shape_typedrawing_shape_typerectangleNOT NULL
add_datedate2024-04-04
remove_datedateNULL
rotationreal0NOT NULL
scale_xreal1NOT NULL
scale_yreal1NOT NULL
xinteger460NOT NULL
yinteger645NOT NULL
propertiesjsonb{"color": "#000000", "width": 275.0,
"height": 233.0, "fillPattern": "none",
"strokeWidth": 3.0}
NOT NULL
layer_iduuid9b77d9b1-02c3-4fac-97bf-686b9f4ea38dNOT NULL, FOREIGN KEY to layers.id