Add files via upload

This commit is contained in:
Jaime Idolpx 2024-10-06 17:55:04 -05:00 committed by GitHub
parent d1ddf17dd4
commit 8330bf1dcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 88 additions and 52 deletions

7
server/config.js Normal file
View File

@ -0,0 +1,7 @@
const globals = {
data_path: '/Users/jjohnston/src/csdb.bot/data'
}
module.exports = { globals }

View File

@ -10,7 +10,8 @@
"author": "Jaime Idolpx", "author": "Jaime Idolpx",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"apollo-server": "^3.7.0", "apollo-server": "^3.13.0",
"graphql": "^16.5.0" "graphql": "^16.5.0",
"mariadb": "^3.3.2"
} }
} }

View File

@ -17,6 +17,7 @@ type User {
MaintainerOf: UserRecords MaintainerOf: UserRecords
# Enhanced Data
uuid: String uuid: String
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
@ -39,33 +40,30 @@ type Release {
ID: Int! ID: Int!
Name: String! Name: String!
AKA: String AKA: String
Type: String Type: String # should go in tag
GfxType: String GfxType: String # should go in tag
Rating: Float Rating: Float
ReleaseDate: [FuzzyDate] ReleaseDate: [FuzzyDate]
ReleasedAt: Int ReleasedAt: Int
ReleasedAtEvent: Event
Achievement: ReleaseAchievement Achievement: ReleaseAchievement
ReleasedBy: ReleaseGroupsHandles ReleasedBy: ReleaseGroupsHandles
Credits: [ReleaseCredit] Credits: [ReleaseCredit]
Website: String Website: String
ScreenShot: String ScreenShot: [String]
DownloadLinks: [ReleaseDownload] DownloadLinks: [ReleaseDownload]
OtherLinks: [ReleaseLink] OtherLinks: [ReleaseLink]
Comments: [ReleaseComment] Comments: [ReleaseComment]
SIDIDs: [Int] SIDIDs: [Int]
Groups: [Group]
Sceners: [Scener]
Handles: [Handle]
Events: [Event]
SIDs: [SID] SIDs: [SID]
Tags: [String]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -79,12 +77,15 @@ type ReleaseAchievement {
type ReleaseGroupsHandles { type ReleaseGroupsHandles {
GroupIDs: [Int] GroupIDs: [Int]
Groups: [Group]
HandleIDs: [Int] HandleIDs: [Int]
Handles: [Handle]
} }
type ReleaseCredit { type ReleaseCredit {
CreditType: String! CreditType: String!
HandleID: Int! HandleIDs: [Int!]
Handles: [Handle]
} }
type ReleaseLink { type ReleaseLink {
@ -100,13 +101,13 @@ type ReleaseDownload {
Filename: String Filename: String
Link: String! Link: String!
Status: String Status: String
crc32: String hash: String
} }
type ReleaseComment { type ReleaseComment {
Summary: [ReleaseCommentData] Summary: [ReleaseCommentData]
Trivia: [ReleaseCommentData] Trivia: [ReleaseCommentData]
Goofs: [ReleaseCommentData] Goof: [ReleaseCommentData]
HiddenPart: [ReleaseCommentData] HiddenPart: [ReleaseCommentData]
ProductionNote: [ReleaseCommentData] ProductionNote: [ReleaseCommentData]
UserComment: [ReleaseCommentData] UserComment: [ReleaseCommentData]
@ -114,7 +115,8 @@ type ReleaseComment {
type ReleaseCommentData { type ReleaseCommentData {
Date: Int! Date: Int!
ScenerID: Int! HandleID: Int!
Handle: Handle
Text: String! Text: String!
} }
@ -127,7 +129,6 @@ type Group {
Rating: Float Rating: Float
Trivia: String Trivia: String
BaseCountry: String BaseCountry: String
IsCoOp: Boolean
FoundDate: [FuzzyDate] FoundDate: [FuzzyDate]
DissolveDate: [FuzzyDate] DissolveDate: [FuzzyDate]
@ -135,22 +136,26 @@ type Group {
Website: String Website: String
Grouptypes: [String] Grouptypes: [String]
Slogan: [String] Slogan: [String]
UserComment: [GroupCommentData]
FounderHandleIDs: [Int]
FounderHandles: [Handle]
OrganizedEventIDs: [Int]
OrganizedEvents: [Event]
Members: [GroupMember]
ReleaseIDs: [Int] ReleaseIDs: [Int]
Members: [GroupMember]
FounderHandleIDs: [Int]
OrganizedEventIDs: [Int]
BBSIDs: [Int]
Releases: [Release] Releases: [Release]
Sceners: [Scener] BBSIDs: [Int]
Handles: [Handle]
Events: [Event]
BBSs: [BBS] BBSs: [BBS]
Tags: [String]
UserComment: [GroupCommentData]
# Enhanced Data
CoOpGroupIDs: [Int]
CoOpGroups: [Group]
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -159,13 +164,14 @@ type Group {
type GroupCommentData { type GroupCommentData {
Date: Int! Date: Int!
ScenerID: Int! HandleID: Int!
Handle: Handle
Text: String! Text: String!
} }
type GroupMember { type GroupMember {
GroupID: Int HandleID: Int!
HandleID: Int Handle: Handle
Profession: [String] Profession: [String]
JoinDate: [FuzzyDate] JoinDate: [FuzzyDate]
@ -174,7 +180,6 @@ type GroupMember {
Status: String Status: String
} }
type Scener { type Scener {
ID: Int! ID: Int!
RegisterdDate: String RegisterdDate: String
@ -184,10 +189,11 @@ type Scener {
DeathDate: [FuzzyDate] DeathDate: [FuzzyDate]
HandleIDs: [Int] HandleIDs: [Int]
Handles: [Handle] Handles: [Handle]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -205,16 +211,28 @@ type Handle {
Credits: [HandleCredit] Credits: [HandleCredit]
FoundedGroupIDs: [Int] FoundedGroupIDs: [Int]
FoundedGroups: [Group]
MemberGroupIDs: [Int]
MemberGroups: [Group]
OrganizedEventIDs: [Int] OrganizedEventIDs: [Int]
OrganizedEvents: [Event]
AttendedEventIDs: [Int] AttendedEventIDs: [Int]
ScenerIDs: [Int] AttendedEvents: [Event]
BBSSysopIDs: [Int]
BBSSysop: [BBS]
BBSUserIDs: [Int]
BBSUser: [BBS]
ReleaseIDs: [Int]
Releases: [Release] Releases: [Release]
Groups: [Group] ScenerIDs: [Int]
Sceners: [Scener] Sceners: [Scener]
Events: [Event]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -224,14 +242,18 @@ type Handle {
type HandleGroup { type HandleGroup {
GroupID: Int! GroupID: Int!
MemberStats: GroupMember MemberStats: GroupMember
Group: Group
} }
type HandleCredit { type HandleCredit {
CreditType: String! CreditType: String!
ReleaseID: Int! ReleaseID: [Int]!
Release: [Release]
} }
type Event { type Event {
ID: Int! ID: Int!
Name: String! Name: String!
@ -249,17 +271,14 @@ type Event {
Country: String Country: String
Website: String Website: String
OrganizerGroup: Group Organizers: EventOrganizers
Compo: [EventCompo] Compo: [EventCompo]
PartyReport: [EventReport] PartyReport: [EventReport]
UserComment: [EventComment] UserComment: [EventComment]
Organizers: EventOrganizers
Releases: [Release]
Groups: [Group]
Handles: [Handle]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -269,6 +288,7 @@ type Event {
type EventCompo { type EventCompo {
Type: String Type: String
ReleaseIDs: [Int] ReleaseIDs: [Int]
Releases: [Release]
} }
type EventReport { type EventReport {
@ -277,17 +297,21 @@ type EventReport {
Date: Int Date: Int
Headline: String Headline: String
Text: String Text: String
Handle: Handle
} }
type EventComment { type EventComment {
HandleID: Int! HandleID: Int!
Date: Int! Date: Int!
Text: String! Text: String!
Handle: Handle
} }
type EventOrganizers { type EventOrganizers {
GroupIDs: [Int] GroupIDs: [Int]
Groups: [Group]
HandleIDs: [Int] HandleIDs: [Int]
Handles: [Handle]
} }
type BBS { type BBS {
@ -307,12 +331,13 @@ type BBS {
Status: String Status: String
GroupIDs: [Int] GroupIDs: [Int]
UserHandleIDs: [Int]
Groups: [Group] Groups: [Group]
HandleIDs: [Int]
Handles: [Handle] Handles: [Handle]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -327,6 +352,7 @@ type BBSOnlinePeriod {
type BBSSysop { type BBSSysop {
Type: String Type: String
HandleID: Int HandleID: Int
Handle: Handle
} }
@ -346,10 +372,11 @@ type SID {
DataSize: Int DataSize: Int
ReleaseIDs: [Int] ReleaseIDs: [Int]
Releases: [Release] Releases: [Release]
# Enhanced Data
uuid: String uuid: String
tags: [String]
dateCreated: String dateCreated: String
dateUpdated: String dateUpdated: String
deleted: Boolean deleted: Boolean
@ -358,13 +385,14 @@ type SID {
type Query { type Query {
getRelease(id: Int!) : Release release(id: Int!) : Release
getGroup(id: Int!) : Group group(id: Int!) : Group
getScener(id: Int!) : Scener scener(id: Int!) : Scener
getHandle(id: Int!) : Handle handle(id: Int!) : Handle
getEvent(id: Int!) : Event handles(id: [Int]!) : [Handle]
getBBS(id: Int!) : BBS event(id: Int!) : Event
getSID(id: Int!) : SID bbs(id: Int!) : BBS
sid(id: Int!) : SID
} }
type Mutation { type Mutation {