Lots of dev
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export enum Sender {
|
||||
ADMIN = 'admin',
|
||||
FINDER = 'finder',
|
||||
INQUIRER = 'inquirer'
|
||||
}
|
||||
|
||||
export interface message {
|
||||
id: number;
|
||||
threadId: number;
|
||||
sender: Sender;
|
||||
body: string;
|
||||
createdAt: Date;
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
export interface Item {
|
||||
id: number;
|
||||
emails?: string[];
|
||||
// ownerPhone: string;
|
||||
foundDate: Date;
|
||||
approvedDate?: Date;
|
||||
claimedDate?: Date;
|
||||
// title: string;
|
||||
description: string;
|
||||
transferred: boolean; // to L&F location
|
||||
keywords?: string[];
|
||||
foundLocation: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
export interface User {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
name: string;
|
||||
password?: string;
|
||||
password_hash?: string;
|
||||
settings?: UserSettings;
|
||||
createdAt: Date;
|
||||
lastSignIn: Date;
|
||||
}
|
||||
|
||||
export interface UserPayload {
|
||||
id: number;
|
||||
email: string;
|
||||
username: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface UserSettings {
|
||||
staleItemDays: number;
|
||||
notifyAllApprovedInquiries?: boolean;
|
||||
notifyAllTurnedInInquiries?: boolean;
|
||||
}
|
||||
|
||||
export const DefaultUserSettings: UserSettings = {
|
||||
staleItemDays: 30,
|
||||
notifyAllApprovedInquiries: false,
|
||||
notifyAllTurnedInInquiries: false
|
||||
};
|
||||
Reference in New Issue
Block a user