Removed account server DB, now uses gRPC

This commit is contained in:
Jonathan Barrow
2023-04-28 14:13:03 -04:00
parent 1b76eb967b
commit 436e5f3bd9
14 changed files with 1487 additions and 954 deletions

View File

@@ -10,10 +10,6 @@ export interface Config {
connection_string: string;
options: mongoose.ConnectOptions;
};
account_db: {
connection_string: string;
options: mongoose.ConnectOptions;
};
s3: {
endpoint: string;
key: string;
@@ -25,5 +21,10 @@ export interface Config {
port: number;
api_key: string;
};
account: {
ip: string;
port: number;
api_key: string;
};
};
}

View File

@@ -1,42 +0,0 @@
import { Model, HydratedDocument } from 'mongoose';
enum ACCESS_LEVEL {
Banned = -1,
Standard = 0,
Tester = 1,
Mod = 2,
Developer = 3
}
type SERVER_ACCESS_LEVEL = 'prod' | 'test' | 'dev';
export interface IPNID {
access_level: ACCESS_LEVEL;
server_access_level: SERVER_ACCESS_LEVEL;
pid: number;
username: string;
birthdate: string;
country: string;
mii: {
name: string;
data: string;
};
connections: {
stripe: {
customer_id: string;
subscription_id: string;
price_id: string;
tier_level: number;
tier_name: string;
latest_webhook_timestamp: number;
};
};
}
export interface IPNIDMethods {}
interface IPNIDQueryHelpers {}
export interface PNIDModel extends Model<IPNID, IPNIDQueryHelpers, IPNIDMethods> {}
export type HydratedPNIDDocument = HydratedDocument<IPNID, IPNIDMethods>