stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

commit f741189ca31dc5cda0db9513b01c689a8145b035
parent 46b42f765d1e8d7217121f098966e77d3fcc070a
Author: Brennen T. Mazur <brennen@madis.cool>
Date:   Thu,  9 Mar 2023 14:12:10 -0700

updated seeds

Diffstat:
Mseeds.py | 26+++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/seeds.py b/seeds.py @@ -87,6 +87,12 @@ time2 = { # 'total_time': } +time3 = { + 'clock_in': [datetime.datetime.utcnow()], + 'modified_by': ['hiccupcmazur'], + 'project': 'Project 5' + } + # Fleet documents fleet1 = { 'date': datetime.datetime.today(), @@ -155,48 +161,54 @@ crew = { '_id':1, 'label': 'Crew', 'dashboard': ['punchclock'], - 'admin': [] + 'admin': [], + 'base_pay_value':10.00 } alead = { '_id':2, 'label': 'Assistant Lead', 'dashboard': ['punchclock','fleet'], - 'admin': [] + 'admin': [], + 'base_pay_value':13.00 } lead = { '_id':3, 'label': 'Crew Lead', 'dashboard': ['punchclock','fleet','activeusers'], - 'admin': [] + 'admin': [], + 'base_pay_value':15.00 } developer = { '_id':4, 'label': 'Web Developer', 'dashboard': ['punchclock','fleet','activeusers'], - 'admin': ['agreements','reports','users','roles'] + 'admin': ['agreements','reports','users','roles'], + 'base_pay_value':32.00 } manager = { '_id':5, 'label': 'Project Manager', 'dashboard': ['punchclock','fleet','activeusers'], - 'admin': ['agreements','reports','users','roles'] + 'admin': ['agreements','reports','users','roles'], + 'base_pay_value':25.00 } accountant = { '_id':6, 'label': 'Accountant', 'dashboard': ['punchclock','fleet','activeusers'], - 'admin': ['agreements','reports','users'] + 'admin': ['agreements','reports','users'], + 'base_pay_value':23.00 } # Insert documents user_collection.insert_many([user1, user2]) -time_collection.insert_many([time1, time2]) +time_collection.insert_many([time1, time2,time3]) fleet_collection.insert_many([fleet1, fleet2]) agreement_collection.insert_many([agreement1, agreement2]) projects_collection.insert_many([projects1, projects2])