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

73 lines
332 KiB
Plaintext
Raw Normal View History

SQLite format 3@ S�.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
� � {/%U 20230804154410_can_receive_folder.js�����($G 20221020143305_task_states.js�����1#Y 20220403172253_published_note_links.js�����)"I 20220201151223_backup_items.js�����7!e 20220131185922_account_disabled_timestamp.js�����4 _ 20220121172409_email_recipient_default.js�����*K 20211204191051_user_deletion.js�����*K 20211111134329_storage_index.js�����$? 20211105183559_storage.js�����3] 20211030103016_item_owner_name_unique.js�����'E 20211027112530_item_owner.js�����#= 20210927183928_events.js�����(G 20210824174024_share_users.js�����'E 20210819165350_user_flags.js�����*K 20210809222118_email_key_fix.js�����&C 20210809163307_email_key.js�����,O 20210721161355_user_is_deleted.js�����9i 20210703202853_account_total_size_int_fix_2.js�����7e 20210703202852_account_total_size_int_fix.js�����-Q 20210703155118_lowercase_emails.js�����5a 20210702182440_account_max_total_size_2.js�����3] 20210702182439_account_max_total_size.js�����.S 20210621185454_share_permissions.js�����-Q 20210618192423_jop_updated_time.js�����# = 20210531150817_stripe.js�����' E 20210527161932_can_upload.js�����) I 20210526180359_account_type.js�����#
= 20210518172311_mailer.js�����& C 20210518150551_can_share.js�����1Y 20210517173042_user_item_size_limit.js�����*K 20210412110640_item_refactor.js�����)I 20210328114529_share_folder.js���ũ)I 20210321112923_joplin_items.js���Ũ&C 20210201143859_app_share.js���Ŧ#= 20203012152842_shares.js���Ť*K 20203012152842_notifications.js���ţ#= 20190913171451_create.js���Ţ �����
���9+�   WaLdFnfJ41QrAl5J7brqvjadmin@localhost$2a$10$t1zNbFXix8V7sprqviTD7OORZ3VGApSLEtiSVFZo3/Nr9 WaLdFnfJ41QrAl5J7brqvj
��9 WaL+ admin@localhost
��9 WaL+ admin@localhost
��9 WaLdFnfJ41QrAl5J7brqvj





��9 sbqiutxP4X9hog9ezGNkGq
��9 sbqiutxP4X9hog9ezGNkGq
�� 9 sbqiutxP4X9hog9ezGNkGq
��




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 pPI9BZ3kyZV5o4tAg3u1jT
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 pPI9BZ3kyZV5o4tAg3u1jT





&%



��9 WaLdFnfJ41QrAl5J7brqvj
��
�9 WaLdFnfJ41QrAl5J7brqvj




/ � x R��>h�[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, 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
�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 '')