Refine schedule/todo UI and integrate Google Photos API
This commit is contained in:
18
backend/models/GoogleConfig.js
Normal file
18
backend/models/GoogleConfig.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const googleConfigSchema = new mongoose.Schema(
|
||||
{
|
||||
key: { type: String, required: true, unique: true }, // e.g., 'photos_auth'
|
||||
tokens: {
|
||||
access_token: String,
|
||||
refresh_token: String,
|
||||
scope: String,
|
||||
token_type: String,
|
||||
expiry_date: Number,
|
||||
},
|
||||
albumId: { type: String }, // Optional: to filter by a specific album
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("GoogleConfig", googleConfigSchema);
|
||||
Reference in New Issue
Block a user