This is the backend that I developed using Postgres and Express for a developer feedback dashboard that allows users to submit tickets to admins for review. Schema/endpoints are disclosed in readme.
{
id: INTEGER;// auto increments by database
first_name: STRING;// not nullable - 128 max chars
last_name: STRING;// not nullable - 128 max chars
username: STRING;// not nullable , unique - 128 max chars
password: STRING;// not nullable - 128 max chars
email: STRING;// not nullable , unique - 128 max chars
is_admin: BOOLEAN;// not nullable , defaults to false
cohort: STRING;// 128 max chars}
Tickets
{
id: INTEGER;// auto increments by database
title: STRING;// not nullable
description: TEXT;//not nullable
category: STRING;// nullable
is_resolved: BOOLEAN;// not nullable, defaults to false
is_assigned: BOOLEAN;//not nullable, defaults to false
assigned_to: INTEGER;// defaults to 0 - meaning not assigned to anyone!
created_at: TIMESTAMP;// defaults to now - no need to fill this out
user_id: INTEGER;// references user id - the users id that created this ticket!}