Skip to Content

Structure

The Images provide below are a brief summary of how the project is constructed into separate folders with each having their own role discribed below.

Components

In this folder, contains the main reusable components that are used throughout Access. listed here are the components in separate sections.

components

Admin - Consist of admin level components that deal with admin related tasks. This folder contains admin header, sidenav, and wrapper that are all tailored to admin needs.

App - In this folder contains the global size and dimensions for the main application to be displayed that all the components are then added into.

Auth - This section deals with all the authentication upon user sign up

Footer - This is where you can config the footer’s section.

Header - This is where you can config the header’s section.

Icons - This folder contains the icons used in svg format

Templates - Located here are both alpha and gizmo templates

User - The role of user section is to handle the editor component of a user, depending if the user selected alpha or gizmo editor.

Views

This is for the views folder structure and is partially included or connected to the components folder.

views

Mail Templates -

SRC

This src folder structure is for maintaining the design of the website including font styles, images and css configuration.

src

Assets - stored here are the fonts in .ttf format, media used in svg, and sass files.

Styles - in this section defined here are the global assigned styles through out the project

Pages

This pages folder structure generally refers to the frontend and backend side of a mailer for both admin and user.

pages

Admin - Contains the configuration of the admin index.

API - Configuration for displaying the frontend of the mailer and the likes.

u - Configuration for the slug which identifies a particular page on a website.

User - Contains the files of the main design for each frontend.

Presentation Database Structure

“aiaccess”

Account

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
userIdtext---no
providertext---no
typetext---no
scopetext--yesyes
emailtext---yes
statusinteger---no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes
access_tokentext---yes
expires_atinteger---yes
id_tokentext---yes
providerAccountIdtext---yes
refresh_tokentext---yes
session_statetext---yes
token_typetext---yes

Agent

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
moduleIdtext---no
agentNametext---no
emailtext---no
phonetext---yes
dretext---yes
websitetext---no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes

Category

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
nametext---no
orderinteger---no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes
templateTypetext---yes

City

ColumnTypeMax LengthDefaultPrimary KeyNull
idinteger--yesno
nametext---no
stateIdinteger---yes

Client Template

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
nametext--nono
templateIdtext[]--yesno
iconIdtext[]--yesno
emailstext[]--yesno

Country

ColumnTypeMax LengthDefaultPrimary KeyNull
idinteger--yesno
nametext---no
iso3text---no
iso2text---no

Icon

ColumnTypeMax LengthDefaultPrimary KeyNullable
idtext--yesno
nametext---no
filePathtext---no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone---yes
deletedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes

Inquiry

ColumnTypeDefaultPrimary KeyNullable
idtext-yesno
moduleIdtext--no
emailtext--no
phonetext--no
messagetext--no
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone--yes
firstNametext--yes
lastNametext--yes

Layout

ColumnTypeDefaultPrimary KeyNullable
idtext-yesno
nametext--no
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone--yes
filePathtext--no
templateIdtext--no
thumbnailtext--no
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes

Media

ColumnTypeDefaultPrimary KeyNullable
idtext-yesno
filenametext--no
thumbnailtext--no
originaltext--no
userIdtext--no
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMP-no
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone--yes
referenceIdtext--yes
reference typetext--yes

Module

ColumnTypeDefaultPrimary KeyNullable
idtext-yesno
referenceTypetext--no
nametext--no
statustext0-no
urltext--no
userIdtext--no
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone--yes
viewstext’0’::text-yes
thumbnailtext--yes

ModuleTheme

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
nametext---no
colorstext---no
orderinteger---no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes

Page

ColumnTypeDefaultPrimary KeyNullable
idtext-yesno
nametext--no
moduleIdtext--no
iconFilePathtext--no
iconIdtext--no
ordertimestamp(3) without time zoneCURRENT_TIMESTAMP-no
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMP-yes
deletedAt---yes

PageMeta

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
labeltext---no
keytext---no
ordertext---no
valuetext---no
pageIdtext---no

Property

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
moduleIdtext---no
streetNametext---yes
statetext---yes
citytext---yes
zipCodetext---yes
pricetext---yes
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes

Role

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
nametextno
permissiontextno
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
deletedAttimestamp(3) without time zoneyes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes

Slide

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
nametextno
layoutIdtextno
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
deletedAttimestamp(3) without time zoneyes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
pageIdtextno
orderintegerno

SlideMeta

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
labeltextno
keytextno
valuetextno
slideIdtextno
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
deletedAttimestamp(3) without time zoneyes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMPno

State

ColumnTypeMax LengthDefaultPrimary KeyNull
idinteger--yesno
nametext---no
stateCodetext---no
countryIdinteger---yes

StripeCustomer

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
emailtextno
StripeCustomerIdtextno

StripeSubscription

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
statustextno
periodStartintegerno
periodEndintegerno
stripeCustomerIdtextno
stripeSubscriptionIdtextno
stripePriceIdtextno
restorebooleanno
cancelAtintegeryes
cancelAtPeriodEndbooleanno
canceledAtintegeryes

Template

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
deletedAttimestamp(3) without time zoneyes
nametextno
folderNametextno
thumbnailtextno
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMPno
typetextyes

User

ColumnTypeDefaultPrimary KeyNullable
idtextyesno
emailtextno
passwordtextyes
firstNametextno
lastNametextno
statusintegeryes
invitetextyes
roleIdtextyes
createdAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
deletedAttimestamp(3) without time zoneyes
updatedAttimestamp(3) without time zoneCURRENT_TIMESTAMPyes
hashTokentextyes

UserDelete

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
userIdtext---no
jobIdtext---yes
expiresAttimestamp(3) without time zone---no
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-no

UserPostmarks

ColumnTypeMax LengthDefaultPrimary KeyNull
idtext--yesno
userIdtext---no
tagtext---no
openedAttimestamp(3) without time zone---yes
deliveredAttimestamp(3) without time zone---yes
spammedAttimestamp(3) without time zone---yes
bouncedAttimestamp(3) without time zone---yes
createdAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
updatedAttimestamp(3) without time zone-CURRENT_TIMESTAMP-yes
deletedAttimestamp(3) without time zone---yes

VerificationToken

ColumnTypeMax LengthDefaultPrimary KeyNull
identifiertext---no
tokentext---no
expirestimestamp(3) without time zone---no

_prisma_migrations

ColumnTypeMax LengthDefaultPrimary KeyNull
idvarchar(36)36-yesno
checksumvarchar(64)64--no
finished_attimestampz---yes
migration_namevarchar(255)255--no
logstext---yes
rolled_back_attimestampz---yes
started_attimestampz-now()-no
applied_steps_countinteger-0-no
Last updated on