Skip to content

Database structure

This page is automatically generated and can be manually generated with database scripts.

Introduction

This documentation is automatically generated by information from MySQL and the PHP code.

The documentation inform you as developer about the database structure and column meaning. Additional for the development of new API or backend parts, the module table usage (extracted from PHP codebase) below provides helpful information. The provided information may help to find already existing queries, gateways, and/or the best location for a new query/function.

Open todos are listed in https://gitlab.com/foodsharing-dev/foodsharing/-/work_items/2524

List of tables

Structure of tables

Table configuration

Description - configuration

Table columns - configuration

ColumnDescriptionTypeproperties
keyvarchar(50)Primary Key
valuevarchar(1000)
categoryOptional category of the key-value pairunsigned intNullable

Table fs_abholer

Description - fs_abholer

Stores filled pickup slots, describes by who fetches when, where and if confirmed, needed to generate statistics (count, but not weight).

Table columns - fs_abholer

ColumnDescriptionTypeproperties
foodsaver_idunsigned intWeak-foreign key (fs_foodsaver:id)
betrieb_idunsigned intWeak-foreign key (fs_betrieb:id)
datedatetime
confirmed1: Confirmed, 0: Not confirmedunsigned tinyint=0
idunsigned intPrimary Key, Auto-Increment

Table fs_abholzeiten

Description - fs_abholzeiten

Contains information about regurlary occuring pickup slots.

Table columns - fs_abholzeiten

ColumnDescriptionTypeproperties
betrieb_idunsigned intPrimary Key, Weak-foreign key (fs_betrieb:id)
dowDay of week (1=Monday, 0=Sunday)unsigned tinyintPrimary Key
timeTime when on the day the pickup istime='00:00:00'Primary Key
fetcherNumber of slots (> 0, limited by frontend currently 8)unsigned tinyint=4
descriptionoptional description for this pickup timevarchar(100)Nullable

Table fs_achievement

Description - fs_achievement

Table columns - fs_achievement

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
region_idregion defining the scope in which this achievement is relevantunsigned intforeign key (fs_bezirk:id)
namevarchar(255)
descriptionvarchar(255)
validity_in_days_after_assignmentintNullable
created_attimestamp=current_timestamp()
updated_attimestampNullable
iconthe icon to display this achievement withvarchar(100)Nullable
visibility_typeunsigned tinyint=2
duplicate_modeunsigned tinyint=0

Table fs_answer

Description - fs_answer

Stores answers to quizzes

Table columns - fs_answer

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
question_idunsigned intforeign key (fs_question:id)
textmediumtext(16777215)Nullable
explanationmediumtext(16777215)
rightunsigned tinyintNullable

Table fs_apitoken

Description - fs_apitoken

User tokens for ICS/ICAL/WebCal access to calendar of future events/pickups.

Table columns - fs_apitoken

ColumnDescriptionTypeproperties
foodsaver_idOwner of the token and identifier for the calendarunsigned intforeign key (fs_foodsaver:id)
tokenAccess token, hex-number from openssl.varchar(255)

Table fs_basket

Description - fs_basket

Lists all food baskets.

Table columns - fs_basket

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned intWeak-foreign key (fs_foodsaver:id)
status@Basket::Statusunsigned tinyintNullable
timeCreation datetimedatetimeNullable
updatedatetimeNullable
untilBasket is present until datetime expiresdatetime
fetchtimedatetimeNullable
descriptionmediumtext(16777215)Nullable
picturetext(65535)Nullable
telvarchar(50)=''
handyvarchar(50)=''
contact_typevarchar(20)='1'
location_typeFix set to 0unsigned tinyintNullable
weightSmaller <0kg = 3kgfloat(12)Nullable
latBasket location latitudefloat(10)(6)=0.000000
lonBasket location longitudefloat(10)(6)=0.000000
bezirk_idunsigned intWeak-foreign key (fs_bezirk:id)
apposttinyint=0

Table fs_basket_anfrage

Description - fs_basket_anfrage

Lists foodbasket requests.

Table columns - fs_basket_anfrage

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
basket_idunsigned intPrimary Key, foreign key (fs_basket:id)
status@RequestsBasket::Statusunsigned tinyintNullable
timedatetime
apposttinyint=0

Table fs_basket_has_art

Description - fs_basket_has_art

Combines foodbaskets with different types of food. Unused: Has to be entered but is never evaluated.

Table columns - fs_basket_has_art

ColumnDescriptionTypeproperties
basket_idunsigned intPrimary Key
art_idunsigned intPrimary Key

Table fs_basket_has_types

Description - fs_basket_has_types

See fs_basket_has_art

Table columns - fs_basket_has_types

ColumnDescriptionTypeproperties
basket_idunsigned intPrimary Key
types_idunsigned intPrimary Key

Table fs_bell

Description - fs_bell

Stores arbitrary notifications

Table columns - fs_bell

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(50)Nullable
bodyvarchar(50)Nullable
varsmediumtext(16777215)Nullable
attrvarchar(500)Nullable
iconvarchar(150)Nullable
identifier@Bell::Typevarchar(40)Nullable
timedatetime
closeableunsigned tinyint=1
expirationdateNullable

Table fs_betrieb

Description - fs_betrieb

Stores stores.

Table columns - fs_betrieb

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
betrieb_status_id@Status::CooperationStatusunsigned int
bezirk_idunsigned intforeign key (fs_bezirk:id)
addeddate
plzvarchar(10)
stadtvarchar(50)
latvarchar(20)Nullable
lonvarchar(20)Nullable
kette_idunsigned intforeign key (fs_chain:id), Nullable
betrieb_kategorie_idunsigned intforeign key (fs_betrieb_kategorie:id), Nullable
namevarchar(120)Nullable
strvarchar(120)Nullable
status_datedateNullable
statusunsigned tinyintNullable
ansprechpartnervarchar(60)Nullable
telefonvarchar(50)Nullable
faxvarchar(50)Nullable
emailvarchar(60)Nullable
begindateNullable
besonderheitenmediumtext(16777215)Nullable
public_infovarchar(535)Nullable
public_time@Store::PublicTimestinyint
ueberzeugungsarbeit@Store::ConvinceStatustinyint
presseYes=0; No=1tinyint
stickerYes=0; No=1tinyint
abholmengeSee @WeightHelpertinyint
team_status0 = Team Voll; 1 = Es werden noch Helfer gesucht; 2 = Es werden dringend Helfer gesuchttinyint=0
prefetchtimeFrequence of expected regular pickups in secondsunsigned int=1209600
team_conversation_idunsigned intforeign key (fs_conversation:id)
springer_conversation_idunsigned intforeign key (fs_conversation:id)
deleted_atdatetimeNullable
use_region_pickup_rule[@StoreSettings::USE](https://gitlab.com/foodsharing-dev/foodsharing/-/tree/master/src/Modules/Core/DBConstants/StoreSettings/USE.php)_PICKUP_RULE_YES = Store follows region pickup rule. @StoreSettings::USE_PICKUP_RULE_NO = Store does not follow region pickup rule.unsigned int=0
hygiene_requirementunsigned tinyint
verified_requirementunsigned tinyint=1
phone_requirementunsigned tinyint=0
apply_text_requirementunsigned tinyint=1

Table fs_betrieb_has_lebensmittel

Description - fs_betrieb_has_lebensmittel

Table columns - fs_betrieb_has_lebensmittel

ColumnDescriptionTypeproperties
betrieb_idunsigned intPrimary Key
lebensmittel_idunsigned intPrimary Key

Table fs_betrieb_kategorie

Description - fs_betrieb_kategorie

Table columns - fs_betrieb_kategorie

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(50)Nullable
typeType of the category: 0 = pickup, 1 = giving, 2 = orgaunsigned tinyint=0

Table fs_betrieb_notiz

Description - fs_betrieb_notiz

Stores wallposts on stores (independent of wallpost system)

Table columns - fs_betrieb_notiz

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned int
betrieb_idunsigned int
milestoneunsigned tinyint=0
textmediumtext(16777215)Nullable
zeitdatetimeNullable
lasttinyint=0

Table fs_betrieb_team

Description - fs_betrieb_team

Assigns team members to stores including their statistics.

Table columns - fs_betrieb_team

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
betrieb_idunsigned intPrimary Key, foreign key (fs_betrieb:id)
verantwortlich@StoreTeam::Responsibleunsigned tinyint=0Nullable
active@StoreTeam::MembershipStatusint=0
stat_last_updatedatetimeNullable
stat_fetchcountunsigned int
stat_first_fetchdateNullable
stat_last_fetchdateNullable
stat_add_datedateNullable

Table fs_bezirk

Description - fs_bezirk

Stores districts as well as working groups (differentiated by type column) (referred to as 'group' or 'district' in this document)

Table columns - fs_bezirk

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
parent_idunsigned int=0foreign key (fs_bezirk:id), Nullable
has_childrenIs set when ID is set in parent_id of other rowtinyint=0
type@Unit::UnitTypetinyint=1
teasermediumtext(16777215)=''
descmediumtext(16777215)=''
photovarchar(200)=''
masterunsigned int=0
mailbox_idId of user related mailboxunsigned int=0Weak-foreign key (fs_mailbox:id)
namevarchar(50)Nullable
email_namevarchar(100)=''
apply_typeDefines join conditions for Working-Groups (@Region::ApplyType)tinyint=2
banana_counttinyint=0
fetch_counttinyint=0
week_numtinyint=0
report_numtinyint=0
stat_last_updatedatetime=current_timestamp()
stat_fetchweightunsigned decimal(12)(2)=0.00
stat_fetchcountunsigned int=0
stat_postcountunsigned int=0
stat_betriebcountunsigned int=0
stat_korpcountunsigned int=0
stat_botcountunsigned int=0
stat_fscountunsigned int=0
stat_fairteilercountunsigned int=0
conversation_idUnusedunsigned int=0
moderated**Unused? Only select found no insert or update ***tinyint=0
stat_givecountunsigned int=0
stat_engagecountunsigned int=0

Table fs_bezirk_closure

Description - fs_bezirk_closure

Table columns - fs_bezirk_closure

ColumnDescriptionTypeproperties
bezirk_idunsigned intforeign key (fs_bezirk:id)
ancestor_idunsigned intforeign key (fs_bezirk:id)
depthunsigned int

Table fs_bezirk_has_theme

Description - fs_bezirk_has_theme

Forum: Relates threads to groups.

Table columns - fs_bezirk_has_theme

ColumnDescriptionTypeproperties
theme_idunsigned intPrimary Key, foreign key (fs_theme:id)
bezirk_idunsigned intPrimary Key, foreign key (fs_bezirk:id)
bot_themeunsigned tinyint=0

Table fs_bezirk_has_wallpost

Description - fs_bezirk_has_wallpost

Relates wallposts to groups. Only relevant for working groups, not for regions.

Table columns - fs_bezirk_has_wallpost

ColumnDescriptionTypeproperties
bezirk_idunsigned intPrimary Key, foreign key (fs_bezirk:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)

Table fs_blog_entry

Description - fs_blog_entry

Stores blog entries (there is a /news URL)

Table columns - fs_blog_entry

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
bezirk_idunsigned int
foodsaver_idunsigned int
activeunsigned tinyint
namevarchar(100)Nullable
teaservarchar(500)Nullable
bodymediumtext(16777215)Nullable
timedatetimeNullable
picturevarchar(150)

Table fs_botschafter

Description - fs_botschafter

Notes the ambassador/admin attribute on a group membership.

Table columns - fs_botschafter

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
bezirk_idunsigned intPrimary Key, foreign key (fs_bezirk:id)

Table fs_buddy

Description - fs_buddy

'I know XY' connection/friendship relation.

Table columns - fs_buddy

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
buddy_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
confirmed@Buddy::BuddyIdunsigned tinyintNullable

Table fs_chain

Description - fs_chain

Table columns - fs_chain

ColumnDescriptionTypeproperties
idunique id of the chainunsigned intPrimary Key, Auto-Increment
namevarchar(120)
headquarters_zipvarchar(5)Nullable
headquarters_cityvarchar(50)Nullable
statusunsigned int
modification_datedate
allow_presstinyint=0
forum_threadid of the chains forum threadunsigned intforeign key (fs_theme:id), Nullable
notesOnly visibe in the chain tablevarchar(200)Nullable
common_store_informationDetails displayed on store pagesmediumtext(16777215)Nullable
estimated_store_countunsigned int=0
headquarters_countryvarchar(50)Nullable

Table fs_contact

Description - fs_contact

Stores email addresses gathered from incoming/outgoing emails that will be used for autocompletion.

Table columns - fs_contact

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(180)Nullable
emailvarchar(180)Nullable

Table fs_content

Description - fs_content

'Mini-CMS' content table that is used to generate some pages as well as sections on some pages.

Table columns - fs_content

ColumnDescriptionTypeproperties
id@Content::ContentIdunsigned intPrimary Key, Auto-Increment
namevarchar(20)Nullable
titlevarchar(120)Nullable
bodymediumtext(16777215)Nullable
last_moddatetimeNullable

Table fs_conversation

Description - fs_conversation

Chat conversations

Table columns - fs_conversation

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
lockedtinyint=0
namevarchar(40)Nullable
lastdatetimeNullable
last_foodsaver_idunsigned intNullable
last_message_idunsigned intNullable
last_messagemediumtext(16777215)Nullable
last_message_is_htmlentity_encodedtinyint=1

Table fs_email_blacklist

Description - fs_email_blacklist

Contains email addresses that are not allowed to sign up

Table columns - fs_email_blacklist

ColumnDescriptionTypeproperties
emailvarchar(255)
sincetimestamp=current_timestamp()
reasonmediumtext(16777215)

Table fs_email_bounces

Description - fs_email_bounces

Table columns - fs_email_bounces

ColumnDescriptionTypeproperties
emailvarchar(255)
bounced_atdatetime
bounce_categoryvarchar(255)

Table fs_event

Description - fs_event

Contains all events

Table columns - fs_event

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned int
bezirk_idunsigned intforeign key (fs_bezirk:id), Nullable
location_idunsigned intforeign key (fs_location:id), Nullable
publictinyint=0
namevarchar(200)Nullable
startdatetime
enddatetime
descriptionmediumtext(16777215)Nullable
botunsigned tinyint=0Nullable
online@Event::EventTypeunsigned tinyint=0Nullable
is_publicunsigned tinyint

Table fs_event_has_wallpost

Description - fs_event_has_wallpost

Links wallposts to events (only communication channel for an event)

Table columns - fs_event_has_wallpost

ColumnDescriptionTypeproperties
event_idunsigned intPrimary Key, foreign key (fs_event:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)

Table fs_fairteiler

Description - fs_fairteiler

Lists food share points

Table columns - fs_fairteiler

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
bezirk_idunsigned intforeign key (fs_bezirk:id), Nullable
namevarchar(260)Nullable
picturevarchar(100)=''
status@FoodSharePoint::ActivationStatusunsigned tinyintNullable
descmediumtext(16777215)Nullable
anschriftvarchar(260)Nullable
plzvarchar(5)Nullable
ortvarchar(100)Nullable
latvarchar(100)Nullable
lonvarchar(100)Nullable
add_datedateNullable
add_foodsaverunsigned intNullable

Table fs_fairteiler_follower

Description - fs_fairteiler_follower

Links follower/responsible to food share points

Table columns - fs_fairteiler_follower

ColumnDescriptionTypeproperties
fairteiler_idunsigned intPrimary Key, foreign key (fs_fairteiler:id)
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
type@FoodSharePoint::FollowerTypeunsigned tinyint=1
infotypeunsigned tinyint=1

Table fs_fairteiler_has_wallpost

Description - fs_fairteiler_has_wallpost

Links wallposts to food share points

Table columns - fs_fairteiler_has_wallpost

ColumnDescriptionTypeproperties
fairteiler_idunsigned intPrimary Key, foreign key (fs_fairteiler:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)

Table fs_feature_toggles

Description - fs_feature_toggles

Table columns - fs_feature_toggles

ColumnDescriptionTypeproperties
identifiervarchar(255)Primary Key
is_activetinyint=0
site_environmentvarchar(255)Primary Key
created_attimestamp=current_timestamp()
updated_attimestampNullable

Table fs_fetchdate

Description - fs_fetchdate

Stores non-recurring pickup slots (just the slot, no fetcher information)

Table columns - fs_fetchdate

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
betrieb_idunsigned int
timedatetimeNullable
fetchercountunsigned tinyintNullable
descriptionoptional description for this pickupvarchar(100)Nullable

Table fs_fetchweight

Description - fs_fetchweight

Table columns - fs_fetchweight

ColumnDescriptionTypeproperties
idintPrimary Key
weightdecimal(5)(1)

Table fs_foodsaver

Description - fs_foodsaver

Describes the user in the foodsharing system. It contains profile, role and statistics.

Table columns - fs_foodsaver

ColumnDescriptionTypeproperties
idUnique id of user in foodsharing communityunsigned intPrimary Key, Auto-Increment
bezirk_idId of home destrictunsigned intWeak-foreign key (fs_bezirk:id)
positionFree text description of position in foodsharing community (public visible)varchar(255)=''
verifiedUser is verified to by part of the foodsharing community (True: Verified, False: Not verified or lost verification)unsigned tinyint=0
last_passLast generation of passportdatetimeNullable
mailbox_idId of user related mailboxunsigned intWeak-foreign key (fs_mailbox:id), Nullable
rolleDescribes the type of member in the foodsharing community system @Foodsaver::Roletinyint
plzZip code of user homevarchar(10)Nullable
stadtCity name of user homevarchar(100)Nullable
latGeo position latitude of user homevarchar(20)Nullable
lonGeo position longitude of user homevarchar(20)Nullable
photoURL to user image ('/api/uploads' '/images/) Path is different depending on upload wayvarchar(50)Nullable
emailE-Mail address which is used for registration and newslettervarchar(120)Nullable
passwordUser login password hashvarchar(100)Nullable
nameFirst name of uservarchar(120)Nullable
nachnameLast name of uservarchar(120)Nullable
anschriftAddress (street and house number) of user homevarchar(120)Nullable
telefonphone number of uservarchar(30)Nullable
handymobile phone number of uservarchar(50)Nullable
geschlechtGender of user (@Foodsaver::Gender)unsigned tinyint=0
geb_datumbirthday of userdateNullable
anmeldedatumDate of registarationdatetimeNullable
privacy_notice_accepted_dateDocumentation modification date of privacy notice which the user accetpeddatetimeNullable
privacy_policy_accepted_dateDocumentation modification date of privacy policy which the user accetpeddatetimeNullable
activeE-Mail activation after registration is completed (True: E-Mail is verified, False: verification e-mail feedback is pending)unsigned tinyint=0
about_me_publicUser provided description text for public accessable parts.mediumtext(16777215)=''
tokenVerification code which is send to user during registrationvarchar(100)
infomail_messageTrue if the user have subscription for info mails like chat notifications.tinyintNullable
last_loginTimestamp of the last successful login.datetimeNullable
stat_fetchweightFetch weight in kgunsigned decimal(9)(2)=0.00
stat_fetchcountCount of fetches the user have confirmed in total.unsigned int=0
stat_ratecountUnusedunsigned int=0
stat_ratingUnusedunsigned decimal(4)(2)=0.00
stat_postcountCount of total post fs_theme_post, fs_wallpost and fs_betrieb_notiz the user createdint=0
stat_buddycountStatistic count of the confirmed buddiesunsigned int=0
stat_bananacountCount of recived bananas the user have.unsigned int=0
stat_fetchrate(1 - 'confirmed but missed fetchs' / 'confirmed fetches') * 100 in procentdecimal(6)(2)=100.00
sleep_statusKind of sleeping (@Foodsaver::SleepStatus)unsigned tinyint=0
sleep_fromDate of sleep will begindateNullable
sleep_untilDate of expected sleeping ends.dateNullable
is_sleepingcalculated column. Indicates, whether the user is currently sleepingtinyintNullable
sleep_msgMessage about the reason of sleeping.mediumtext(16777215)Nullable
quiz_rolle@Foodsaver::Role of quiz that the user have already successful done. (Hard coded levels exist: Role::AMBASSADOR, Role::STORE_MANAGER, Role::FOODSAVER)unsigned tinyint=0
deleted_atDate of accounts was deleted.datetimeNullable
about_me_internUser provided description text for community internal accessable parts.text(65535)Nullable
deleted_byid of the user who deleted this profileunsigned intNullable
deleted_reasonoptional explanation why this profile was deletedvarchar(200)Nullable
no_automatic_deleteIf true user is not automatically deletedtinyint=0
totp_secretvarchar(40)Nullable
backup_codeslongtext(4294967295)Nullable
stat_givecountunsigned int=0
stat_engagecountunsigned int=0

Table fs_foodsaver_archive

Description - fs_foodsaver_archive

Archive table to hold removed users for admin purposes

Table columns - fs_foodsaver_archive

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
bezirk_idunsigned int
positionvarchar(255)=''
verifiedunsigned tinyint=0
last_passdatetimeNullable
new_bezirkvarchar(120)
want_newtinyint=0
mailbox_idunsigned intNullable
rolletinyint
typetinyint=0Nullable
plzvarchar(10)Nullable
stadtvarchar(100)Nullable
latvarchar(20)Nullable
lonvarchar(20)Nullable
photovarchar(50)Nullable
emailvarchar(120)Nullable
passwordvarchar(100)Nullable
namevarchar(120)Nullable
adminunsigned tinyintNullable
nachnamevarchar(120)Nullable
anschriftvarchar(120)Nullable
telefonvarchar(30)Nullable
homepagevarchar(255)Nullable
handyvarchar(50)Nullable
geschlechtunsigned tinyintNullable
geb_datumdateNullable
anmeldedatumdatetimeNullable
privacy_notice_accepted_datedatetimeNullable
privacy_policy_accepted_datedatetimeNullable
orgateamunsigned tinyint=0Nullable
activeunsigned tinyint=0
datamediumtext(16777215)
about_me_publicmediumtext(16777215)
newslettertinyint=0
tokenvarchar(100)
infomail_messagetinyintNullable
last_logindatetimeNullable
stat_fetchweightunsigned decimal(9)(2)=0.00
stat_fetchcountunsigned int=0
stat_ratecountunsigned int=0
stat_ratingunsigned decimal(4)(2)=0.00
stat_postcountint=0
stat_buddycountunsigned int
stat_bananacountunsigned int=0
stat_fetchratedecimal(6)(2)=100.00
sleep_statusunsigned tinyint=0
sleep_fromdateNullable
sleep_untildateNullable
sleep_msgmediumtext(16777215)Nullable
optionmediumtext(16777215)
betatinyint=0
quiz_rolleunsigned tinyint=0
contact_publictinyint
deleted_atdatetimeNullable
about_me_interntext(65535)Nullable
deleted_byid of the user who deleted this profileunsigned intNullable
deleted_reasonoptional explanation why this profile was deletedvarchar(200)Nullable
no_automatic_deleteIf true user is not automatically deletedtinyint=0
is_sleepingtinyintNullable
totp_secretvarchar(40)Nullable
backup_codeslongtext(4294967295)Nullable
stat_givecountunsigned int=0
stat_engagecountunsigned int=0

Table fs_foodsaver_change_history

Description - fs_foodsaver_change_history

Logs all changes to personal data in foodsaver table

Table columns - fs_foodsaver_change_history

ColumnDescriptionTypeproperties
datetimestamp=current_timestamp()
fs_idint
changer_idint
object_namemediumtext(16777215)
old_valuemediumtext(16777215)Nullable
new_valuemediumtext(16777215)Nullable

Table fs_foodsaver_has_achievement

Description - fs_foodsaver_has_achievement

Table columns - fs_foodsaver_has_achievement

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned intforeign key (fs_foodsaver:id)
achievement_idunsigned intforeign key (fs_achievement:id)
reviewer_idunsigned intforeign key (fs_foodsaver:id), Nullable
noticetext(65535)Nullable
valid_untildatetimeNullable
created_attimestamp=current_timestamp()
updated_attimestampNullable

Table fs_foodsaver_has_bell

Description - fs_foodsaver_has_bell

Relates bells to their owner

Table columns - fs_foodsaver_has_bell

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
bell_idunsigned intPrimary Key, foreign key (fs_bell:id)
seenunsigned tinyint=0Nullable

Table fs_foodsaver_has_bezirk

Description - fs_foodsaver_has_bezirk

Describes which foodsaver is in which group/district/workgroups and regions membership

Table columns - fs_foodsaver_has_bezirk

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
bezirk_idunsigned intPrimary Key, foreign key (fs_bezirk:id)
active0=beworben,1=aktiv,10=vielleichtunsigned int=0Nullable
addedDate of insertdatetime=current_timestamp()
applicationAddition information about the foodsaver (like skills, possible time, ...)mediumtext(16777215)=''
notify_by_email_about_new_threadsEmails from new forum threads in regions and working groups can be disabled.unsigned tinyint=1
notify_on_all_new_threadsWhether to send a bell for every new thread in the forum. NULL for default value.unsigned tinyintNullable

Table fs_foodsaver_has_contact

Description - fs_foodsaver_has_contact

Relates contacts (email addresses, see above) to users

Table columns - fs_foodsaver_has_contact

ColumnDescriptionTypeproperties
foodsaver_idunsigned int=0Primary Key, foreign key (fs_foodsaver:id)
contact_idunsigned int=0Primary Key, foreign key (fs_contact:id)

Table fs_foodsaver_has_conversation

Description - fs_foodsaver_has_conversation

Relates conversations to foodsavers. Care: It is also used to look up conversations by user

Table columns - fs_foodsaver_has_conversation

ColumnDescriptionTypeproperties
foodsaver_idunsigned intforeign key (fs_foodsaver:id)
conversation_idunsigned intforeign key (fs_conversation:id)
unreadsmallint=1
idunsigned intPrimary Key, Auto-Increment

Table fs_foodsaver_has_event

Description - fs_foodsaver_has_event

Relates users to events.

Table columns - fs_foodsaver_has_event

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
event_idunsigned intPrimary Key, foreign key (fs_event:id)
statusunsigned tinyint=0

Table fs_foodsaver_has_favorite_resource

Description - fs_foodsaver_has_favorite_resource

Table columns - fs_foodsaver_has_favorite_resource

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
resource_idunsigned intPrimary Key, foreign key (fs_resource:id)

Table fs_foodsaver_has_options

Description - fs_foodsaver_has_options

Table columns - fs_foodsaver_has_options

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
option_typecategory of the optionunsigned intPrimary Key
option_valuevalue of the optionvarchar(255)

Table fs_foodsaver_has_poll

Description - fs_foodsaver_has_poll

Table columns - fs_foodsaver_has_poll

ColumnDescriptionTypeproperties
foodsaver_idid of the voterunsigned intPrimary Key, foreign key (fs_foodsaver:id)
poll_idid of the pollunsigned intPrimary Key, foreign key (fs_poll:id)
timetime at which the voter has voted, null if not voted yetdatetimeNullable

Table fs_foodsaver_has_wallpost

Description - fs_foodsaver_has_wallpost

Wallposts on user profile

Table columns - fs_foodsaver_has_wallpost

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)
usercommenttinyint=0

Table fs_fsreports_has_wallpost

Description - fs_fsreports_has_wallpost

Stores notes on abuse reports

Table columns - fs_fsreports_has_wallpost

ColumnDescriptionTypeproperties
fsreports_idfoodsaver Id that has all reportsunsigned intPrimary Key, foreign key (fs_foodsaver:id)
wallpost_idwallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)

Table fs_ipblock

Description - fs_ipblock

Table columns - fs_ipblock

ColumnDescriptionTypeproperties
ipvarchar(20)Primary Key
contextvarchar(10)Primary Key
startdatetimeNullable
durationunsigned intNullable

Table fs_key_account_manager

Description - fs_key_account_manager

Table columns - fs_key_account_manager

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
chain_idunsigned intPrimary Key, foreign key (fs_chain:id)

Table fs_lebensmittel

Description - fs_lebensmittel

Different kinds of food to be linked with individual stores. Only ever implemented as setter, don't care for now.

Table columns - fs_lebensmittel

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(50)Nullable

Table fs_location

Description - fs_location

Table columns - fs_location

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(200)Nullable
latdecimal(10)(8)Nullable
londecimal(11)(8)Nullable
zipvarchar(10)Nullable
cityvarchar(100)Nullable
streetvarchar(200)Nullable

Table fs_mailbox

Description - fs_mailbox

Stores mailbox names (for email mailboxes)

Table columns - fs_mailbox

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(50)Nullable
membertinyint=0
last_accessdatetime=current_timestamp()

Table fs_mailbox_member

Description - fs_mailbox_member

Maps additional mailbox access for users (e.g. granting custom mailboxes or group ones)

Table columns - fs_mailbox_member

ColumnDescriptionTypeproperties
mailbox_idunsigned intPrimary Key, foreign key (fs_mailbox:id)
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
email_namevarchar(120)

Table fs_mailbox_message

Description - fs_mailbox_message

E-mails

Table columns - fs_mailbox_message

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
mailbox_idunsigned intforeign key (fs_mailbox:id)
folderunsigned tinyint=1Nullable
sendertext(65535)Nullable
tomediumtext(16777215)
subjecttext(65535)Nullable
bodymediumtext(16777215)Nullable
body_htmlmediumtext(16777215)
timedatetimeNullable
attachmediumtext(16777215)Nullable
readunsigned tinyintNullable
answerunsigned tinyintNullable

Table fs_mailchange

Description - fs_mailchange

Requests to change the emailaddress

Table columns - fs_mailchange

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
newmailvarchar(200)Nullable
timedatetimeNullable
tokenvarchar(300)Nullable

Table fs_msg

Description - fs_msg

Chat messages

Table columns - fs_msg

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
conversation_idunsigned intforeign key (fs_conversation:id)
foodsaver_idunsigned int
bodymediumtext(16777215)Nullable
timedatetimeNullable
is_htmlentity_encodedtinyint=1

Table fs_pass_gen

Description - fs_pass_gen

Logs which ID cards have been generated

Table columns - fs_pass_gen

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
datedatetimePrimary Key
bot_idunsigned intforeign key (fs_foodsaver:id), Nullable

Table fs_pass_request

Description - fs_pass_request

Stores requests to reset the password

Table columns - fs_pass_request

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
namevarchar(50)Nullable
timedatetimeNullable

Table fs_poll

Description - fs_poll

Table columns - fs_poll

ColumnDescriptionTypeproperties
idunique id of the pollunsigned intPrimary Key, Auto-Increment
region_idregion with which the poll is associatedunsigned intforeign key (fs_bezirk:id)
nametitle of the pollvarchar(200)Nullable
descriptiondescription of the pollmediumtext(16777215)Nullable
scopedetermines who will be invited to voteunsigned int
typedetermines how a vote is cast and which values are possible for each optionunsigned int
startstart timestamp for the polldatetime
endend timestamp for the polldatetime
authorid of the user who created the pollunsigned int
creation_timestampdatetime
votesnumber of users who have votedunsigned int=0
cancelled_byid of the user who cancelled the pollunsigned intNullable
eligible_votes_countnumber of users who are eligible to voteunsigned int=0
shuffle_optionstinyint=1
notifications_senttinyint=2

Table fs_poll_has_options

Description - fs_poll_has_options

Table columns - fs_poll_has_options

ColumnDescriptionTypeproperties
poll_idthe poll to which this option belongsunsigned intPrimary Key, foreign key (fs_poll:id)
optionindex of the optionunsigned intPrimary Key
option_textvarchar(1000)Nullable

Table fs_poll_option_has_value

Description - fs_poll_option_has_value

Table columns - fs_poll_option_has_value

ColumnDescriptionTypeproperties
poll_idthe poll to which the option belongsunsigned intPrimary Key, foreign key (fs_poll:id)
optionindex of the optionunsigned intPrimary Key
valuevalue for the optionintPrimary Key
votesnumber of current votes for the valueunsigned int=0

Table fs_post_reaction

Description - fs_post_reaction

Table columns - fs_post_reaction

ColumnDescriptionTypeproperties
post_idunsigned intforeign key (fs_theme_post:id)
timedatetime
foodsaver_idint
keyvarchar(63)Nullable

Table fs_push_notification_subscription

Description - fs_push_notification_subscription

Table columns - fs_push_notification_subscription

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idint
datatext(65535)Nullable
typevarchar(24)Nullable

Table fs_question

Description - fs_question

Quiz questions

Table columns - fs_question

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
textmediumtext(16777215)Nullable
durationunsigned int
wikilinkvarchar(250)
is_mandatoryunsigned tinyint

Table fs_question_has_quiz

Description - fs_question_has_quiz

Relates quiz questions to the quiz

Table columns - fs_question_has_quiz

ColumnDescriptionTypeproperties
question_idunsigned intPrimary Key, foreign key (fs_question:id)
quiz_idunsigned intPrimary Key, foreign key (fs_quiz:id)
fpunsigned tinyintNullable

Table fs_question_has_wallpost

Description - fs_question_has_wallpost

Relates wallposts to quiz questions

Table columns - fs_question_has_wallpost

ColumnDescriptionTypeproperties
question_idunsigned intPrimary Key, foreign key (fs_question:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)
usercommenttinyint=0

Table fs_quiz

Description - fs_quiz

Table columns - fs_quiz

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(200)Nullable
descmediumtext(16777215)Nullable
is_desc_htmlentity_encodedWhether the quiz description is html encoded.tinyint=1
maxfpunsigned smallint
questcountunsigned smallint
questcount_untimednumber of questions that need to be answered when not using a time limit. Can be null to disable untimed quizzes.unsigned smallintNullable

Table fs_quiz_session

Description - fs_quiz_session

Each try (by users) of a quiz (session)

Table columns - fs_quiz_session

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned intforeign key (fs_foodsaver:id)
quiz_idunsigned int
statusunsigned tinyintNullable
quiz_indexunsigned tinyintNullable
quiz_questionsmediumtext(16777215)Nullable
quiz_resultmediumtext(16777215)Nullable
time_startdatetimeNullable
time_enddatetimeNullable
fpdecimal(5)(2)Nullable
maxfpunsigned tinyintNullable
quest_countunsigned tinyintNullable
easymodetinyint=0
is_testWhether this quiz session is only for testing purposesunsigned tinyint=0

Table fs_rating

Description - fs_rating

Stores trust bananas

Table columns - fs_rating

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
rater_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
msgmediumtext(16777215)
timedatetime

Table fs_region_function

Description - fs_region_function

Table columns - fs_region_function

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
region_idunsigned intforeign key (fs_bezirk:id)
function_idunsigned intNullable
target_idintNullable

Table fs_region_options

Description - fs_region_options

Table columns - fs_region_options

ColumnDescriptionTypeproperties
region_idunsigned intPrimary Key, foreign key (fs_bezirk:id)
option_typecategory of the optionunsigned intPrimary Key
option_valuevalue of the optionvarchar(255)

Table fs_region_pin

Description - fs_region_pin

Table columns - fs_region_pin

ColumnDescriptionTypeproperties
region_idregion idunsigned intPrimary Key, foreign key (fs_bezirk:id)
latlatitudevarchar(20)
lonlongitudevarchar(20)
descdescriptionmediumtext(16777215)
statusstate of the pinunsigned tinyint=0

Table fs_region_statistics

Description - fs_region_statistics

Table columns - fs_region_statistics

ColumnDescriptionTypeproperties
region_idId of the region, referring to table fs_bezirk.unsigned intPrimary Key, foreign key (fs_bezirk:id)
last_modifiedThe last time that the statistics for the region were updateddatetimeNullable
active_home_region_foodsaversNumber of verified foodsavers with home region within the region that logged in within the last monthunsigned int=0
active_coorporationsNumber of currently cooperating storesunsigned int=0
pickups_last_monthNumber of filled pickup slots in the last monthunsigned int=0
saved_food_weight_last_monthWeight of saved food of the last month. Rounded to full kg.unsigned int=0
active_food_share_pointsNumber of active food share pointsunsigned mediumint=0
food_baskets_last_monthNumber of foodbaskets in the last monthunsigned mediumint=0

Table fs_registration_attempt

Description - fs_registration_attempt

Table columns - fs_registration_attempt

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
emailvarchar(255)
tokenvarchar(60)Nullable
valid_untildatetime

Table fs_report

Description - fs_report

Table columns - fs_report

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned int
reporter_idunsigned intNullable
reporttypeunsigned tinyintNullable
betrieb_idunsigned intNullable
timedatetimeNullable
committedunsigned tinyint=0Nullable
msgmediumtext(16777215)Nullable
tvaluevarchar(300)Nullable
report_reason_idReport Reason IDunsigned int=1

Table fs_resource

Description - fs_resource

Table columns - fs_resource

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idnull if resource is tied to the region (commons)unsigned intforeign key (fs_foodsaver:id), Nullable
region_idunsigned intforeign key (fs_bezirk:id), Nullable
namevarchar(35)
descriptiontext(65535)Nullable
is_privatetinyint=0Nullable
opennessunsigned int=3Nullable
imagestext(65535)Nullable

Table fs_resource_category

Description - fs_resource_category

Table columns - fs_resource_category

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
namevarchar(35)

Table fs_resource_has_category

Description - fs_resource_has_category

Table columns - fs_resource_has_category

ColumnDescriptionTypeproperties
resource_idunsigned intPrimary Key, foreign key (fs_resource:id)
category_idunsigned intPrimary Key, foreign key (fs_resource_category:id)

Table fs_stat_abholmengen

Description - fs_stat_abholmengen

Stores statistics per store (unused)

Table columns - fs_stat_abholmengen

ColumnDescriptionTypeproperties
betrieb_idunsigned intPrimary Key
datedatetimePrimary Key
abholmengedecimal(5)(1)

Table fs_store_has_wallpost

Description - fs_store_has_wallpost

Table columns - fs_store_has_wallpost

ColumnDescriptionTypeproperties
store_idunsigned intPrimary Key, foreign key (fs_betrieb:id)
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)

Table fs_store_log

Description - fs_store_log

Table columns - fs_store_log

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
store_idID of Storeunsigned int
date_activitywhen did the action take placedatetime=current_timestamp()
actionaction type that was performedunsigned tinyint
fs_id_afoodsaver_id who is doing the actionunsigned int
fs_id_pto which foodsaver_id is it done tounsigned intNullable
date_referencedate referenced (slot or wallpost entry)datetimeNullable
contentText from the store-wall-entrymediumtext(16777215)Nullable
reasonWhy a negativ action was donemediumtext(16777215)Nullable

Table fs_theme

Description - fs_theme

Threads in the forum.

Table columns - fs_theme

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned int
last_post_idunsigned int=0
namevarchar(260)Nullable
timedatetimeNullable
activeunsigned tinyint=1
stickytinyint=0
statusstatus of the thread (open or closed)unsigned int=0

Table fs_theme_follower

Description - fs_theme_follower

Stores who follows threads

Table columns - fs_theme_follower

ColumnDescriptionTypeproperties
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
theme_idunsigned intPrimary Key, foreign key (fs_theme:id)
infotypetinyint=0
bell_notificationtinyint=1

Table fs_theme_post

Description - fs_theme_post

Stores posts in forum threads

Table columns - fs_theme_post

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
theme_idunsigned intforeign key (fs_theme:id)
foodsaver_idunsigned int
bodymediumtext(16777215)Nullable
timedatetimeNullable
hidden_timedatetimeNullable
hidden_byunsigned intforeign key (fs_foodsaver:id), Nullable
hidden_reasonvarchar(255)Nullable
last_edited_atTime of the last edit of the post (null if never edited)datetimeNullable

Table fs_usernotes_has_wallpost

Description - fs_usernotes_has_wallpost

Relates wallposts to user profiles, which describes the orga notes on user profiles

Table columns - fs_usernotes_has_wallpost

ColumnDescriptionTypeproperties
usernotes_idunsigned intPrimary Key
wallpost_idunsigned intPrimary Key, foreign key (fs_wallpost:id)
usercommenttinyint=0

Table fs_verify_history

Description - fs_verify_history

Table columns - fs_verify_history

ColumnDescriptionTypeproperties
fs_idunsigned intNullable
datedatetime
bot_idunsigned intNullable
change_statustinyintNullable

Table fs_wallpost

Description - fs_wallpost

Table columns - fs_wallpost

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
foodsaver_idunsigned int
bodymediumtext(16777215)Nullable
timedatetimeNullable
attachmediumtext(16777215)Nullable

Table fs_wall_post_reaction

Description - fs_wall_post_reaction

Table columns - fs_wall_post_reaction

ColumnDescriptionTypeproperties
post_idunsigned intPrimary Key, foreign key (fs_wallpost:id)
foodsaver_idunsigned intPrimary Key, foreign key (fs_foodsaver:id)
keyvarchar(63)Primary Key
timedatetime

Table fs_webauthn_credentials

Description - fs_webauthn_credentials

Table columns - fs_webauthn_credentials

ColumnDescriptionTypeproperties
idvarchar(26)Primary Key
public_key_credential_idtext(65535)
typevarchar(255)
transportslongtext(4294967295)
attestation_typevarchar(255)
trust_pathtext(65535)
aaguidvarchar(36)
credential_public_keytext(65535)
user_handleunsigned intforeign key (fs_foodsaver:id)
counterunsigned int=0
other_uilongtext(4294967295)Nullable
namevarchar(255)Nullable
rp_idThe Relying Party ID (domain) where this passkey was registeredvarchar(255)=''
created_atdatetime
last_used_atdatetimeNullable

Table oauth_access_tokens

Description - oauth_access_tokens

Table columns - oauth_access_tokens

ColumnDescriptionTypeproperties
identifiervarchar(100)Primary Key
client_identifiervarchar(100)foreign key (oauth_clients:identifier), Nullable
user_identifiervarchar(100)Nullable
scopesmediumtext(16777215)
expires_atdatetime
revokedtinyint=0Nullable
created_atdatetime

Table oauth_auth_codes

Description - oauth_auth_codes

Table columns - oauth_auth_codes

ColumnDescriptionTypeproperties
identifiervarchar(100)Primary Key
client_identifiervarchar(100)foreign key (oauth_clients:identifier), Nullable
user_identifiervarchar(100)Nullable
scopesmediumtext(16777215)
redirect_urimediumtext(16777215)Nullable
noncevarchar(255)Nullable
expires_atdatetime
revokedtinyint=0Nullable
code_challengevarchar(255)Nullable
code_challenge_methodvarchar(20)Nullable
created_atdatetime

Table oauth_clients

Description - oauth_clients

Table columns - oauth_clients

ColumnDescriptionTypeproperties
identifiervarchar(100)Primary Key
namevarchar(190)Nullable
confidentialtinyint=1Nullable
activetinyint=1Nullable
redirect_urismediumtext(16777215)
scopesmediumtext(16777215)
grant_typesmediumtext(16777215)
secret_hashvarchar(255)Nullable
required_region_idsmediumtext(16777215)Nullable
changed_byunsigned int=0Nullable
created_atdatetime
updated_atdatetime

Table oauth_refresh_tokens

Description - oauth_refresh_tokens

Table columns - oauth_refresh_tokens

ColumnDescriptionTypeproperties
identifiervarchar(100)Primary Key
access_token_identifiervarchar(100)foreign key (oauth_access_tokens:identifier), Nullable
expires_atdatetime
revokedtinyint=0Nullable
created_atdatetime

Table oauth_user_consents

Description - oauth_user_consents

Table columns - oauth_user_consents

ColumnDescriptionTypeproperties
idunsigned intPrimary Key, Auto-Increment
user_idunsigned intforeign key (fs_foodsaver:id), Nullable
client_identifiervarchar(100)foreign key (oauth_clients:identifier), Nullable
scopesmediumtext(16777215)
revoked_atdatetimeNullable
created_atdatetime
updated_atdatetime

Table phinxlog

Description - phinxlog

Table columns - phinxlog

ColumnDescriptionTypeproperties
versionbigintPrimary Key
migration_namevarchar(100)Nullable
start_timetimestampNullable
end_timetimestampNullable
breakpointtinyint=0

Table uploads

Description - uploads

Table columns - uploads

ColumnDescriptionTypeproperties
uuidchar(36)Primary Key
user_idunsigned intNullable
sha256hashchar(64)
mimeTypevarchar(255)
uploaded_atdatetime
filesizeunsigned int
used_inIndicates in which module this uploaded file is being used (profile photo, wall post, ...). A value of null indicates that the file is not being used (yet).unsigned intNullable
usage_idId of the entity that uses this uploaded file, e.g. id of the profile or the wall post. A null value indicates that the file is not being used (yet).char(10)Nullable

Usage of table in PHP Modules

Achievement

Activity

Application

Banana

Basket

Bell

Blog

Buddy

BusinessCard

Command

Commands

Content

DTO

Db

Dev

EMailVerify

Event

FoodSharePoint

Foodsaver

Group

Info

Lib

Login

Mailbox

Mails

Maintenance

Map

Message

OAuth

PassportGenerator

Profile

PushNotification

Querys

Quiz

Region

Register

Report

Repository

ResourceMosaic

Settings

Statistics

Stats

Store

StoreChain

Unit

Voting

WallPost

WebAuthn

WorkGroup