feat: add iCloud integration
This commit is contained in:
21
db/migration/005_create_icloud_accounts.php
Normal file
21
db/migration/005_create_icloud_accounts.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
return function (PDO $db): void {
|
||||
$db->exec("PRAGMA foreign_keys = ON;");
|
||||
|
||||
$db->exec("
|
||||
CREATE TABLE IF NOT EXISTS icloud_accounts (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL,
|
||||
remote_name TEXT NOT NULL UNIQUE,
|
||||
apple_id TEXT NOT NULL,
|
||||
trust_token TEXT,
|
||||
cookies TEXT,
|
||||
status TEXT NOT NULL DEFAULT 'pending',
|
||||
connected_at INTEGER,
|
||||
created_at INTEGER NOT NULL,
|
||||
FOREIGN KEY(user_id) REFERENCES users(id)
|
||||
);
|
||||
");
|
||||
};
|
||||
Reference in New Issue
Block a user