Module db

Source
Expand description

Contains structs that model database tables.

Structs§

Feedback
Field
Form
NewFeedback
NewField
NewForm
NewUser
Struct used to create a new user in the database, password is hashed in store()
QrCode
User
Represents a user record in the database.

Functions§

get_user_by_id
Returns a user from the database with the given user_id.