1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00
Files
joplin/packages/server/schema.sqlite

75 lines
336 KiB
Plaintext
Raw Normal View History

SQLite format 3@ UT�U.f��L��� � = �
� �
Y�
"O�nT�.�;�V-sindexchanges_id_indexchangesCREATE INDEX `changes_id_index` on `changes` (`id`)`/�indexchanges_id_uniquechangesCREATE UNIQUE INDEX `changes_id_unique` on `changes` (`id`)��stablechangeschangesCREATE TABLE `changes` (`counter` integer not null primary key autoincrement, `id` varchar(32) not null, `owner_id` varchar(32) not null, `item_type` integer not null, `parent_id` varchar(32) not null default '', `item_id` varchar(32) not null, `item_name` text not null default '', `type` integer not null, `updated_time` bigint not null, `created_time` bigint not null)d7�indexfiles_parent_id_indexfilesCREATE INDEX `files_parent_id_index` on `files` (`parent_id`)C�1indexfiles_parent_id_name_uniquefilesCREATE UNIQUE INDEX `files_parent_id_name_unique` on `files` (`parent_id`, `name`)W+{indexfiles_id_uniquefilesCREATE UNIQUE INDEX `files_id_unique` on `files` (`id`)�c�%tablefilesfilesCREATE TABLE `files` (`id` varchar(32) not null, `owner_id` varchar(32) not null, `name` text not null, `content` blob not null default '', `mime_type` varchar(128) not null default 'application/octet-stream', `size` integer not null default '0', `is_directory` integer not null default '0', `is_root` integer not null default '0', `parent_id` varchar(32) not null default '', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`)))=indexsqlite_autoindex_files_1files�S#�Eindexpermissions_item_type_item_id_indexpermissionsCREATE INDEX `permissions_item_type_item_id_index` on `permissions` (`item_type`, `item_id`)v?#�indexpermissions_item_id_indexpermissionsCREATE INDEX `permissions_item_id_index` on `permissions` (`item_id`)�;e#�{indexpermissions_user_id_item_type_item_id_uniquepermissionsCREATE UNIQUE INDEX `permissions_user_id_item_type_item_id_unique` on `permissions` (`user_id`, `item_type`, `item_id`)p7#�indexpermissions_id_uniquepermissionsCREATE UNIQUE INDEX `permissions_id_unique` on `permissions` (`id`)�^ ##�tablepermissionspermissions CREATE TABLE `permissions` (`id` varchar(32) not null, `user_id` varchar(32) not null, `item_type` integer not null, `item_id` varchar(32) not null, `can_read` integer not null default '0', `can_write` integer not null default '0', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))5 I#indexsqlite_autoindex_permissions_1permissionsd 1�indexsessions_id_uniquesessions CREATE UNIQUE INDEX `sessions_id_unique` on `sessions` (`id`)�q �5tablesessionssessions
CREATE TABLE `sessions` (`id` varchar(32) not null, `user_id` varchar(32) not null, `auth_code` varchar(32) not null default '', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))/
Cindexsqlite_autoindex_sessions_1sessions W/windexusers_email_indexusers CREATE INDEX `users_email_index` on `users` (`email`)a1�indexusers_email_uniqueusersCREATE UNIQUE INDEX `users_email_unique` on `users` (`email`)W+{indexusers_id_uniqueusersCREATE UNIQUE INDEX `users_id_unique` on `users` (`id`)��tableusersusersCREATE TABLE `users` (`id` varchar(32) not null, `email` text not null, `password` text not null, `full_name` text not null default '', `is_admin` integer not null default '0', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`)))=indexsqlite_autoindex_users_1users�"55�gtableknex_migrations_lockknex_migrations_lockCREATE TABLE `knex_migrations_lock` (`index` integer not null primary key autoincrement, `is_locked` integer)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�<++�/tableknex_migrationsknex_migrationsCREATE TABLE `knex_migrations` (`id` integer not null primary key autoincrement, `name` varchar(255), `batch` integer, `migration_6}T) )����b7 ���`5 � � � S  � � y K # � � �  V !
m
4
� � { H ��,)O 202504040912000_user_auth_code.js�nIm1(Y 20250219183745_changes_optimization.js�nI_8'g 20241024143000_add_external_account_marker.js�nIT1&Y 20240413141308_changes_optimization.js�nIH/%U 20230804154410_can_receive_folder.js�nIB($G 20221020143305_task_states.js�nI61#Y 20220403172253_published_note_links.js�nI()"I 20220201151223_backup_items.js�nI7!e 20220131185922_account_disabled_timestamp.js�nI 4 _ 20220121172409_email_recipient_default.js�nH�*K 20211204191051_user_deletion.js�nH�*K 20211111134329_storage_index.js�nH�$? 20211105183559_storage.js�nH�3] 20211030103016_item_owner_name_unique.js�nH�'E 20211027112530_item_owner.js�nH�#= 20210927183928_events.js�nH�(G 20210824174024_share_users.js�nH�'E 20210819165350_user_flags.js�nHt*K 20210809222118_email_key_fix.js�nHg&C 20210809163307_email_key.js�nH`,O 20210721161355_user_is_deleted.js�nHS9i 20210703202853_account_total_size_int_fix_2.js�nHF7e 20210703202852_account_total_size_int_fix.js�nH:-Q 20210703155118_lowercase_emails.js�nH%5a 20210702182440_account_max_total_size_2.js�nH3] 20210702182439_account_max_total_size.js�nH.S 20210621185454_share_permissions.js�nG�-Q 20210618192423_jop_updated_time.js�nG�# = 20210531150817_stripe.js�nG�' E 20210527161932_can_upload.js�nG�) I 20210526180359_account_type.js�nG�#
= 20210518172311_mailer.js�nG�& C 20210518150551_can_share.js�nG�1Y 20210517173042_user_item_size_limit.js�nG�*K 20210412110640_item_refactor.js�nGt)I 20210328114529_share_folder.js�nG9)I 20210321112923_joplin_items.js�nG,&C 20210201143859_app_share.js�nG#= 20203012152842_shares.js�nG *K 20203012152842_notifications.js�nG#= 20190913171451_create.js�nF� �����
���9+�   Ioxy4jR0TRB9pYi1zY1Yuyadmin@localhost$2a$10$l855k7/mw8KrvqbHGfb/9.du/MrEcE9kjXQkroi.Q89Z9 Ioxy4jR0TRB9pYi1zY1Yuy
��9 Iox+ admin@localhost
��9 Iox+ admin@localhost
��9 Ioxy4jR0TRB9pYi1zY1Yuy





��9 fwe2rQzaWjW5BVJgcRWRYX
��9 fwe2rQzaWjW5BVJgcRWRYX
�� 9 fwe2rQzaWjW5BVJgcRWRYX
��




Cindexsqlite_autoindex_sessions_1sessions �q �5tablesessionssessions
CREATE TABLE `sessions` (`id` varchar(32) not null, `user_id` varchar(32) not null, `auth_code` varchar(32) not null default '', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))a)5�indexfiles_owner_id_indexfiles,CREATE INDEX `files_owner_id_index` on `files` (`owner_id`)5&I#indexsqlite_autoindex_share_users_1share_users)�!O'�Iindexnotifications_owner_id_key_uniquenotifications$CREATE UNIQUE INDEX `notifications_owner_id_key_unique` on `notifications` (`owner_id`, `key`)�"55�gtableknex_migrations_lockknex_migrations_lockCREATE TABLE `knex_migrations_lock` (`index` integer not null primary key autoincrement, `is_locked` integer)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�<++�/tableknex_migrationsknex_migrationsCREATE TABLE `knex_migrations` (`id` integer not null primary key autoincrement, `name` varchar(255), `batch` integer, `migration_time` datetime) ��
��9 waWYqiurk9uRe4z3UH6xBV
G ��.�m��M�}yy�����iT�-tabletokenstokensCREATE TABLE `tokens` (`id` integer not null primary key autoincrement, `value` varchar(32) not null, `user_id` varchar(32) not null default '', `updated_time` bigint not null, `created_time` bigint not null)[m�tableemailsemails CREATE TABLE `emails` (`id` integer not null primary key autoincrement, `recipien�(C�+tablesharessharesDCREATE TABLE "shares" (`id` varchar(32) NOT NULL, `owner_id` varchar(32) NOT NULL, `item_id` varchar(32) NOT NULL, `type` integer NOT NULL, `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `folder_id` varchar(32) NOT NULL DEFAULT '', `note_id` varchar(32) NOT NULL DEFAULT '', `master_key_id` varchar(32) not null default '', `recursive` smallint null default '0', PRIMARY KEY (`id`))fR7�indexchanges_user_id_indexchangesCREATE INDEX `changes_user_id_index` on `changes` (`user_id`)fQ7�indexchanges_item_id_indexchangesCREATE INDEX `changes_item_id_index` on `changes` (`item_id`)VP-sindexchanges_id_indexchangesCREATE INDEX `changes_id_index` on `changes` (`id`)`O/�indexchanges_id_uniquechangesCREATE UNIQUE INDEX `changes_id_unique` on `changes` (`id`)�N�tablechangeschanges.CREATE TABLE "changes" (`counter` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `id` varchar(32) NOT NULL, `item_type` integer NOT NULL, `item_id` varchar(32) NOT NULL, `item_name` text NOT NULL DEFAULT '', `type` integer NOT NULL, `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `previous_item` text NOT NULL DEFAULT '', `user_id` varchar(32) NOT NULL DEFAULT '')bH5�indexshares_item_id_indexsharesFCREATE INDEX `shares_item_id_index` on `shares` (`item_id`)hG9� indexshares_folder_id_indexshares'CREATE INDEX `shares_folder_id_index` on `shares` (`folder_id`)bF5�indexshares_note_id_indexshares&CREATE INDEX `shares_note_id_index` on `shares` (`note_id`)[E-indexshares_id_uniqueshares%CREATE UNIQUE INDEX `shares_id_unique` on `shares` (`id`)+D?indexsqlite_autoindex_shares_1sharesE��]tablesharessharesDCREATE TABLE "shares" (`id` varchar(32) NOT NULL, `owner_id` varchar(32) NOT NULL, `item_id` varchar(32) NOT NULL, `type` integer NOT NULL, `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `folder_id` varchar(32) NOT NULL DEFAULT '', `note_id` varchar(32) NOT NULL DEFAULT '', `master_key_id` varchar(32) not null default '', PRIMARY KEY (`id`))fB5!�indexkey_values_key_indexkey_valuesCCREATE INDEX `key_values_key_index` on `key_values` (`key`)�1A!!�-tablekey_valueskey_valuesBCREATE TABLE `key_values` (`id` integer not null primary key autoincrement, `key` text not null, `type` integer not null, `value` text not null)�)@])�Yindexitem_resources_item_id_resource_id_indexitem_resourcesACREATE INDEX `item_resources_item_id_resource_id_index` on `item_resources` (`item_id`, `resource_id`)�2?_)�iindexitem_resources_item_id_resource_id_uniqueitem_resources@CREATE UNIQUE INDEX `item_resources_item_id_resource_id_unique` on `item_resources` (`item_id`, `resource_id`)�<>))�3tableitem_resourcesitem_resources?CREATE TABLE `item_resources` (`id` integer not null primary key autoincrement, `item_id` varchar(32) not null, `resource_id` varchar(32) not null)r==!�indexuser_items_item_id_indexuser_items>CREATE INDEX `user_items_item_id_index` on `user_items` (`item_id`)r<=!�indexuser_items_user_id_indexuser_items=CREATE INDEX `user_items_user_id_index` on `user_items` (`user_id`)�;O!�Iindexuser_items_user_id_item_id_uniqueuser_items<CREATE UNIQUE INDEX `user_items_user_id_item_id_unique` on `user_items` (`user_id`, `item_id`)�l:!!�#tableuser_itemsuser_items;CREATE TABLE `user_items` (`id` integer not null primary key autoincrement, `user_id` varchar(32) not null, `item_id` varchar(32) not null, `updated_time` bigint not null, `created_time` bigint not null)s*A�indexfiles_source_file_id_indexfiles-CREATE INDEX `files_source_file_id_index` on `files` (`source_file_id`)
��9 waWYqiurk9uRe4z3UH6xBV





&%



��9 Ioxy4jR0TRB9pYi1zY1Yuy
��





/ � x R��Th�tableusersusersCREATE TABLE "users" (`id` varchar(32) NOT NULL, `email` text NOT NULL, `password` text NOT NULL, `full_name` text NOT NULL DEFAULT '', `is_admin` integer NOT NULL DEFAULT '0', `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `email_confirmed` integer NOT NULL DEFAULT '0', `must_set_password` integer NOT NULL DEFAULT '0', `account_type` integer NOT NULL DEFAULT '0', `can_upload` integer NOT NULL DEFAULT '1', `max_item_size` integer NULL DEFAULT null, `can_share_folder` smallint NULL DEFAULT null, `can_share_note` smallint NULL DEFAULT null, `max_total_item_size` bigint NULL DEFAULT null, `total_item_size` bigint not null default '0', `enabled` smallint null default '1', `disabled_time` bigint not null default '0', `can_receive_folder` smallint null default null, `is_external` integer not null default '0', `sso_auth_code` varchar(255) not null default '', `sso_auth_code_expire_at` integer not null default '0', PRIMARY KEY (`id`))�+}�5tableitemsitemsMCREATE TABLE "items" (`id` varchar(32) NOT NULL, `name` text NOT NULL, `mime_type` varchar(128) NOT NULL DEFAULT 'application/octet-stream', `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `content` blob NOT NULL DEFAULT '', `content_size` integer NOT NULL DEFAULT '0', `jop_id` varchar(32) NOT NULL DEFAULT '', `jop_parent_id` varchar(32) NOT NULL DEFAULT '', `jop_share_id` varchar(32) NOT NULL DEFAULT '', `jop_type` integer NOT NULL DEFAULT '0', `jop_encryption_applied` integer NOT NULL DEFAULT '0', `jop_updated_time` bigint NOT NULL DEFAULT '0', `owner_id` varchar(32) NOT NULL, `content_storage_id` integer NOT NULL, PRIMARY KEY (`id`))�I|�etablestoragesstorages:CREATE TABLE `storages` (`id` integer not null primary key autoincrement, `connection_string` text not null, `updated_time` bigint not null, `created_time` bigint not null)Xr/windexevents_name_indexeventsICREATE INDEX `events_name_index` on `events` (`name`)Xq/windexevents_type_indexeventsHCREATE INDEX `events_type_index` on `events` (`type`)[p-indexevents_id_uniqueeventsGCREATE UNIQUE INDEX `events_id_unique` on `events` (`id`)�^o�tableeventsevents1CREATE TABLE `events` (`id` char(36) not null, `counter` integer not null primary key autoincrement, `type` integer not null, `name` varchar(32) not null default '', `created_time` bigint not null)� nI!�=indexuser_flags_user_id_type_uniqueuser_flags0CREATE UNIQUE INDEX `user_flags_user_id_type_unique` on `user_flags` (`user_id`, `type`)�qm!!�-tableuser_flagsuser_flags/CREATE TABLE `user_flags` (`id` integer not null primary key autoincrement, `user_id` varchar(32) not null, `type` integer not null default '0', `updated_time` bigint not null, `created_time` bigint not null)Wl/windexusers_email_indexusersCREATE INDEX `users_email_index` on `users` (`email`)ak1�indexusers_email_uniqueusersCREATE UNIQUE INDEX `users_email_unique` on `users` (`email`)Wj+{indexusers_id_uniqueusersCREATE UNIQUE INDEX `users_id_unique` on `users` (`id`))i=indexsqlite_autoindex_users_1users �0X''�tablesubscriptionssubscriptionsCREATE TABLE `subscriptions` (`id` integer not null primary key autoincrement, `user_id` varchar(32) not null, `stripe_user_id` varchar(64) not null, `stripe_subscription_id` varchar(64) not null, `last_payment_time` bigint not null, `last_payment_failed_time` bigint not null default '0', `updated_time` bigint not null, `created_time` bigint not null, `is_deleted` smallint null default '0')wWA�!indextokens_value_user_id_indextokensCREATE INDEX `tokens_value_user_id_index` on `tokens` (`value`, `user_id`)











10/10/


��' Type=Database
J9875432
�!� � G)�3indexuser_deletions_user_id_uniqueuser_deletionsPCREATE UNIQUE INDEX `user_deletions_user_id_unique` on `user_deletions` (`user_id`)�u�))�%tableuser_deletionsuser_deletionsOCREATE TABLE `user_deletions` (`id` integer not null primary key autoincrement, `user_id` varchar(32) not null, `process_data` smallint not null default '0', `process_account` smallint not null default '0', `scheduled_time` bigint not null, `start_time` bigint not null default '0', `end_time` bigint not null default '0', `success` integer not null default '0', `error` text not null default '', `updated_time` bigint not null, `created_time` bigint not null)�I�+indexitems_content_storage_id_indexitemsKCREATE INDEX `items_content_storage_id_index` on `items` (`content_storage_id`)��O�Cindexstorages_connection_string_uniquestoragesJCREATE UNIQUE INDEX `storages_connection_string_unique` on `storages` (`connection_string`)|�A�-indexitems_name_owner_id_uniqueitems9CREATE UNIQUE INDEX `items_name_owner_id_unique` on `items` (`name`, `owner_id`)m�=�indexitems_jop_share_id_indexitems8CREATE INDEX `items_jop_share_id_index` on `items` (`jop_share_id`)a�5�indexitems_jop_type_indexitems7CREATE INDEX `items_jop_type_index` on `items` (`jop_type`)p�?�indexitems_jop_parent_id_indexitems5CREATE INDEX `items_jop_parent_id_index` on `items` (`jop_parent_id`)Z�1{indexitems_jop_id_indexitems4CREATE INDEX `items_jop_id_index` on `items` (`jop_id`)T�-sindexitems_name_indexitems3CREATE INDEX `items_name_index` on `items` (`name`)W+{indexitems_id_uniqueitems2CREATE UNIQUE INDEX `items_id_unique` on `items` (`id`)U etaq� ?�indexemails_sent_success_indexemailsCREATE INDEX `emails_sent_success_index` on `emails` (`sent_success`)h� 9� indexemails_sent_time_indexemails CREATE INDEX `emails_sent_time_index` on `emails` (`sent_time`))~=indexsqlite_autoindex_items_1itemsNn�5tableitemsitemsMCREATE TABLE "items" (`id` varchar(32) NOT NULL, `name` text NOT NULL, `mime_type` varchar(128) NOT NULL DEFAULT 'application/octet-stream', `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `content` blob NOT NULL DEFAULT '', `content_size` integer NOT NULL DEFAULT '0', `jop_id` varchar(32) NOT NULL DEFAULT '', `jop_parent_id` varchar(32) NOT NULL DEFAULT '', `jop_share_id` varchar(32) NOT NULL DEFAULT '', `jop_type` integer NOT NULL DEFAULT '0', `jop_encryption_applied` integer NOT NULL DEFAULT '0', `jop_updated_time` bigint NOT NULL DEFAULT '0', `owner_id` varchar(32) NOT w�?�!indexchanges_type2_counter_idxchangesTCREATE INDEX changes_type2_counter_idx ON changes (counter) WHERE type = 2�A#�'indextask_states_task_id_uniquetask_statesSCREATE UNIQUE INDEX `task_states_task_id_unique` on `task_states` (`task_id`)��##�tabletask_statestask_statesRCREATE TABLE `task_states` (`id` integer not null primary key autoincrement, `task_id` integer not null, `running` smallint not null default '0', `enabled` smallint not null default '1', `updated_time` bigint not null, `created_time` bigint not null)�� %%�Ktablebackup_itemsbackup_itemsCREATE TABLE `backup_items` (`id` integer not null primary key autoincrement, `type` integer not null, `key` text not null, `user_id` varchar(32) not null default '', `content` blob not null, `created_time` bigint not null)��
�tableemailsemailsQCREATE TABLE "emails" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `recipient_name` text NOT NULL DEFAULT '', `recipient_email` text NOT NULL DEFAULT '', `recipient_id` varchar(32) NOT NULL DEFAULT '', `sender_id` integer NOT NULL, `subject` varchar(128) NOT NULL, `body` text NOT NULL, `sent_time` bigint NOT NULL DEFAULT '0', `sent_success` integer NOT NULL DEFAULT '0', `error` text NOT NULL DEFAULT '', `updated_time` bigint NOT NULL, `created_time` bigint NOT NULL, `key` text NOT NULL DEFAULT '')