2025-07-26 22:05:27 -05:00
|
|
|
export interface Post {
|
|
|
|
|
_id: string
|
2025-08-07 23:23:46 -05:00
|
|
|
address: string
|
|
|
|
|
date: Date
|
2025-07-26 22:05:27 -05:00
|
|
|
notes: string
|
|
|
|
|
photo: string
|
|
|
|
|
status: StatusEnum
|
|
|
|
|
userID: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export enum StatusEnum {
|
2025-08-06 13:36:47 -05:00
|
|
|
Created = 'created',
|
|
|
|
|
Pending = 'pending',
|
|
|
|
|
Denied = 'denied',
|
2025-08-06 23:18:26 -05:00
|
|
|
Approved = 'approved'
|
2025-08-06 13:36:47 -05:00
|
|
|
}
|
2025-08-08 00:49:33 -05:00
|
|
|
|
|
|
|
|
export const initialState: Post = {
|
|
|
|
|
_id: "",
|
|
|
|
|
address: "",
|
|
|
|
|
date: new Date(),
|
|
|
|
|
notes: "",
|
|
|
|
|
photo: "",
|
|
|
|
|
status: StatusEnum.Created,
|
|
|
|
|
userID: ""
|
|
|
|
|
}
|