-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from Team3132/mel-suggestions
Mel-suggestions
- Loading branch information
Showing
61 changed files
with
1,040 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE "RSVP" ADD COLUMN "checkinTime" timestamp(3) with time zone;--> statement-breakpoint | ||
ALTER TABLE "RSVP" ADD COLUMN "checkoutTime" timestamp(3) with time zone;--> statement-breakpoint | ||
ALTER TABLE "RSVP" DROP COLUMN IF EXISTS "attended"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,315 @@ | ||
{ | ||
"version": "5", | ||
"dialect": "pg", | ||
"id": "ad2518d2-81ec-47a3-9fc5-9e49552c9fa2", | ||
"prevId": "9a26111b-8ebe-43ff-afd4-e16a76dd56f4", | ||
"tables": { | ||
"Event": { | ||
"name": "Event", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"description": { | ||
"name": "description", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "''" | ||
}, | ||
"title": { | ||
"name": "title", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"startDate": { | ||
"name": "startDate", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"endDate": { | ||
"name": "endDate", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"allDay": { | ||
"name": "allDay", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": false | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "EventTypes", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "'Regular'" | ||
}, | ||
"secret": { | ||
"name": "secret", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"roles": { | ||
"name": "roles", | ||
"type": "text[]", | ||
"primaryKey": false, | ||
"notNull": false | ||
}, | ||
"isSyncedEvent": { | ||
"name": "isSyncedEvent", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": false | ||
} | ||
}, | ||
"indexes": { | ||
"Event_secret_key": { | ||
"name": "Event_secret_key", | ||
"columns": [ | ||
"secret" | ||
], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"RSVP": { | ||
"name": "RSVP", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"eventId": { | ||
"name": "eventId", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"userId": { | ||
"name": "userId", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"delay": { | ||
"name": "delay", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": false | ||
}, | ||
"createdAt": { | ||
"name": "createdAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"updatedAt": { | ||
"name": "updatedAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"status": { | ||
"name": "status", | ||
"type": "RSVPStatus", | ||
"primaryKey": false, | ||
"notNull": false | ||
}, | ||
"checkinTime": { | ||
"name": "checkinTime", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": false | ||
}, | ||
"checkoutTime": { | ||
"name": "checkoutTime", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": false | ||
} | ||
}, | ||
"indexes": { | ||
"RSVP_eventId_userId_key": { | ||
"name": "RSVP_eventId_userId_key", | ||
"columns": [ | ||
"eventId", | ||
"userId" | ||
], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": { | ||
"RSVP_eventId_Event_id_fk": { | ||
"name": "RSVP_eventId_Event_id_fk", | ||
"tableFrom": "RSVP", | ||
"tableTo": "Event", | ||
"columnsFrom": [ | ||
"eventId" | ||
], | ||
"columnsTo": [ | ||
"id" | ||
], | ||
"onDelete": "cascade", | ||
"onUpdate": "cascade" | ||
}, | ||
"RSVP_userId_User_id_fk": { | ||
"name": "RSVP_userId_User_id_fk", | ||
"tableFrom": "RSVP", | ||
"tableTo": "User", | ||
"columnsFrom": [ | ||
"userId" | ||
], | ||
"columnsTo": [ | ||
"id" | ||
], | ||
"onDelete": "cascade", | ||
"onUpdate": "cascade" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"Scancode": { | ||
"name": "Scancode", | ||
"schema": "", | ||
"columns": { | ||
"code": { | ||
"name": "code", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"createdAt": { | ||
"name": "createdAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"updatedAt": { | ||
"name": "updatedAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"userId": { | ||
"name": "userId", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"Scancode_userId_User_id_fk": { | ||
"name": "Scancode_userId_User_id_fk", | ||
"tableFrom": "Scancode", | ||
"tableTo": "User", | ||
"columnsFrom": [ | ||
"userId" | ||
], | ||
"columnsTo": [ | ||
"id" | ||
], | ||
"onDelete": "restrict", | ||
"onUpdate": "cascade" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"User": { | ||
"name": "User", | ||
"schema": "", | ||
"columns": { | ||
"username": { | ||
"name": "username", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"createdAt": { | ||
"name": "createdAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"updatedAt": { | ||
"name": "updatedAt", | ||
"type": "timestamp(3) with time zone", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true | ||
}, | ||
"roles": { | ||
"name": "roles", | ||
"type": "text[]", | ||
"primaryKey": false, | ||
"notNull": false | ||
}, | ||
"defaultStatus": { | ||
"name": "defaultStatus", | ||
"type": "RSVPStatus", | ||
"primaryKey": false, | ||
"notNull": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
} | ||
}, | ||
"enums": { | ||
"EventTypes": { | ||
"name": "EventTypes", | ||
"values": { | ||
"Social": "Social", | ||
"Regular": "Regular", | ||
"Outreach": "Outreach" | ||
} | ||
}, | ||
"RSVPStatus": { | ||
"name": "RSVPStatus", | ||
"values": { | ||
"LATE": "LATE", | ||
"MAYBE": "MAYBE", | ||
"NO": "NO", | ||
"YES": "YES" | ||
} | ||
} | ||
}, | ||
"schemas": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.