📋
Philanthrolab
  • Philanthrolab Technical Docs
  • SSN Component Library
  • Datalabs
    • Introduction
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
  • Social Safety Network
    • Introduction
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
      • V1
      • V2
  • SSN for Organisations
    • Introduction
    • Features and user stories
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
  • Developer Resources
    • Frontend Project Guide
    • Coding Guide
    • Creating a Neo4j instance on GCP vm
    • Set up local deploy for staging and production envs
    • Install ElasticSearch on GCP
    • ElasticSearch Query
    • ETL Strategy for Neo4j Database: Scraping, Transformation, and Enrichment
    • ETL Checklist
  • SSN Authentication
    • Introduction
    • Architecture
    • Schema
  • SSN Admin Dashboard
    • Introduction
    • Architecture
  • SSN Job Board
    • Introduction
    • Architecture
    • User Stories
    • Schema Dictionary
  • SSN Eligibility criteria AI feature
    • Introduction
    • Working Principles
    • Architecture
    • Schema Dictionary
  • DataBase Repopulation
    • Introduction
    • Proposed Solution
    • DB Details
    • Batch 1
  • LLM INTEGRATION
    • LLM Strategy and Implementation
Powered by GitBook
On this page
  • SSN Organization
  • Social Safety Net
  • Datalabs
  • SSN Admin

Was this helpful?

  1. SSN Authentication

Schema

Object schema for services powered by SSN AUTH

SSN Organization

firstName: { type: String, required: true },
lastName: { type: String, required: true },
email: { type: String, required: true, unique: true, sparse: true },
password: { type: String, required: true },
plan: {
  type: String,
  enum: ['free', 'basic', 'pro'],
  default: 'free',
},
createdAt: { type: Date, default: Date.now },
updatedAt: { type: Date, default: Date.now },
avatarUrl: { type: String },
verified: { type: Boolean, default: false },

Social Safety Net

firstName: { type: String, required: true },
lastName: { type: String, required: true },
email: { type: String, required: true, unique: true, sparse: true },
password: { type: String, required: true },
country: { type: String },
state: { type: String },
avatarUrl: { type: String },
dob: { type: String },
disability: { type: Array, default: [] },
phone: { type: String },
ext: { type: Number },
gender: {
  type: String,
  enum: ['Male', 'Female', 'Other'],
},
employmentStatus: {
  type: String,
  enum: ['employed', 'unemployed'],
},
housingStatus: {
  type: String,
  enum: ['homeless', 'nearHomeless', 'notHomeless'],
},
incomeLevel: {
  type: String,
  enum: ['lowIncome', 'highIncome', 'average'],
},
insurance: {
  type: String,
  enum: ['insured', 'underInsured', 'notInsured'],
},
household: {
  type: String,
  enum: ['individual', 'smallFamily', 'largeFamily'],
},
plan: {
  type: String,
  enum: ['free', 'basic', 'pro'],
  default: 'free',
},
verified: {
  type: Boolean,
  enum: [true, false],
  default: false,
},
documents: { type: Array, default: [] },
createdAt: { type: Date, default: Date.now() },
updatedAt: { type: Date, default: Date.now() },

Datalabs

firstName: { type: String, required: true },
lastName: { type: String, required: true },
email: { type: String, required: true, unique: true, sparse: true },
password: { type: String, required: true },
country: { type: String },
role: {
  type: String,
  enum: ['writer', 'admin', 'reader'],
  default: 'writer',
},
plan: {
  type: String,
  enum: ['free', 'basic', 'pro'],
  default: 'free',
},
timestamp: { type: Date, default: Date.now },
avatarUrl: { type: String, default: '' },
verified: { type: Boolean, default: false },
createdAt: { type: Date, default: Date.now() },
updatedAt: { type: Date, default: Date.now() },verified: { type: Boolean, default: false },

SSN Admin

firstName: { type: String, required: true },
lastName: { type: String, required: true },
email: { type: String, required: true, unique: true },
password: { type: String, required: true },
PreviousArchitectureNextIntroduction

Last updated 3 years ago

Was this helpful?