User:Mugenity

From Hack Manhattan Wiki
Jump to: navigation, search

Alias: mugenity

Name: Jay

Contact: mdevCCCC1024@CCCCmail.com

remove the C's



Active Projects

CigCounter: Cigarette Case to track intake over time.

South Wall Shelf

Dimensions: Wall depth: 4.5 inches

Needs: 8 inch bolts through the wall into the closet.

Introduction to Arduino Course

Arduino IDE: https://www.arduino.cc/en/Main/Software

Teensyduino: https://www.pjrc.com/teensy/td_download.html

Membership Database Plan

Member DB Schema (member)

id
username (wiki)
email_addr
joined
last_activity
first_name
last_name
middle_name (optional)

Member Payment Check (payment)

id
transaction_id
user_id (member.id)
payment_received (datetime)
value
method (paypal, stripe, cash, check, etc)
created_by (member.id)
currency (optional)

Operations

Add payment record(username, date=now, value,method):

Lookup member.id from member table
insert into payment table

Is user active(username):

Get member.id from username
Select latest payment where user_id = member.id
if payment_received within 30 days ago:
return active
if payment_received > 30 days ago:
return pending_suspension
else:
return suspended