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

62 lines
284 KiB
Plaintext
Raw Normal View History

2021-08-22 11:28:15 +01:00
SQLite format 3@ GG�.4 �6�� � = �
� �
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_time`N*  ����b7 ���`5 � � � S  � � y K # � �
= 20210518172311_mailer.js{mt/O& C 20210518150551_can_share.js{mt/L1Y 20210517173042_user_item_size_limit.js{mt/K*K 20210412110640_item_refactor.js{mt/J)I 20210328114529_share_folder.js{mt/$)I 20210321112923_joplin_items.js{mt/#&C 20210201143859_app_share.js{mt/ #= 20203012152842_shares.js{mt/*K 20203012152842_notifications.js{mt/#= 20190913171451_create.js{mt/ ���
��� M+�   3yCTSFCKLouFihkWWJirCsR1kXqOrvtyadmin@localhost$2a$10$1RuJJZYyUMN/hY9gvchZ1e2.cdwsj.eFRL#M 3yCTSFCKLouFihkWWJirCsR1kXqOrvty
��#M 3yCTSFCKLouFi+ admin@localhost
��#M 3yCTSFCKLouFi+ admin@localhost
��#M 3yCTSFCKLouFihkWWJirCsR1kXqOrvty

2021-05-25 11:49:47 +02:00




��#M ZewMf4yFL4mTwHEWiPBfb5EkhFPyfrJT
��#M ZewMf4yFL4mTwHEWiPBfb5EkhFPyfrJT
��$ M ZewMf4yFL4mTwHEWiPBfb5EkhFPyfrJT
��




2021-07-03 20:37:27 +01:00
EA�J  �  ����~ �^� �� wZ� Es*A�indexfiles_source_file_id_indexfiles-CREATE INDEX `files_source_file_id_index` on `files` (`source_file_id`)�(S#�Qindexshare_users_share_id_user_id_uniqueshare_users+CREATE UNIQUE INDEX `share_users_share_id_user_id_unique` on `share_users` (`share_id`, `user_id`)p'7#�indexshare_users_id_uniqueshare_users*CREATE UNIQUE INDEX `share_users_id_unique` on `share_users` (`id`)�%##�qtableshare_usersshare_users(CREATE TABLE `share_users` (`id` varchar(32) not null, `share_id` varchar(32) not null, `user_id` varchar(32) not null, `status` integer not null default '0', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))x ;'�indexnotifications_id_uniquenotifications#CREATE UNIQUE INDEX `notifications_id_unique` on `notifications` (`id`)9M'indexsqlite_autoindex_notifications_1notifications"�p''�tablenotificationsnotifications!CREATE TABLE `notifications` (`id` varchar(32) not null, `owner_id` varchar(32) not null, `level` integer not null, `key` text not null, `message` text not null, `read` integer not null default '0', `canBeDismissed` integer not null default '1', `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))p7#�indexapi_clients_id_uniqueapi_clients CREATE UNIQUE INDEX `api_clients_id_unique` on `api_clients` (`id`)5I#indexsqlite_autoindex_api_clients_1api_clients�i##�tableapi_clientsapi_clientsCREATE TABLE `api_clients` (`id` varchar(32) not null, `name` varchar(32) not null, `secret` varchar(32) not null, `updated_time` bigint not null, `created_time` bigint not null, primary key (`id`))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`))=indexsqlite_autoindex_files_1files�p�?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, `source_file_id` varchar(32) not null default '', `content_type` integer not null default '1', `content_id` varchar(32) not null default '', primary key (`id`))d 1�indexsessions_id_uniquesessions CREATE UNIQUE INDEX `sessions_id_unique` on `sessions` (`id`)/
Cindexsqlite_autoindex_sessions_1sessions �q �5tablesessionssessions
2021-07-03 20:37:27 +01:00
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`))
/wina)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) ��
��#M JjDPDSG5956ETTn5FhyOHHCn2Fm3ym0Q
2021-05-25 11:49:47 +02:00
2021-07-03 20:37:27 +01:00
 �Z���u"��4�fa] O��N�tablechangeschanges.CREATE TABLE "changes" (`counter` integer not null primary key autoincrement, `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 '')�)@])�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)Z61{indexitems_jop_id_indexitems7CREATE INDEX `items_jop_id_index` on `items` (`jop_id`)T5-sindexitems_name_indexitems5CREATE INDEX `items_name_index` on `items` (`name`)W4+{indexitems_id_uniqueitems4CREATE UNIQUE INDEX `items_id_unique` on `items` (`id`))3=indexsqlite_autoindex_items_1items3 _A�indexfiles_soubH5�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�PC�{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 '', 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)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)m9=�indexitems_jop_share_id_indexitems:CREATE INDEX `items_jop_share_id_index` on `items` (`jop_share_id`)a85�indexitems_jop_type_indexitems9CREATE INDEX `items_jop_type_index` on `items` (`jop_type`)U�Etableitemsitems2CREATE TABLE `items` (`id` varchar(32) not null, `name` tex�c2�%tableitemsitems2CREATE 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', primary key (`id`))r==!�indexuser_items_item_id_indexuser_items>CREATE INDEX `user_items_item_id_index` on `user_items` (`item_id`)p7?�indexitems_jop_parent_id_indexitems8CREATE INDEX `items_jop_parent_id_index` on `items` (`jop_parent_id`)
��#M JjDPDSG5956ETTn5FhyOHHCn2Fm3ym0Q





&%



��#M 3yCTSFCKLouFihkWWJirCsR1kXqOrvty
��
�#M 3yCTSFCKLouFihkWWJirCsR1kXqOrvty



2021-08-22 11:28:15 +01:00

2021-07-03 20:37:27 +01:00
<����;� � ���133�table_knex_temp�<c�Wtableusersusers/CREATE 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', `mupY3indexsqlite_autoindex__knex_temp_alter333_1_knex_temp_alter333 )3�`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', primary key (`id`))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 ~O�wtableusersusersCREATE TABLE "users" (`id` varchar(32) not num�S�tableemailsemails CREATE TABLE `emails` (`id` integer not null primary key autoincrement, `recipient_name` text not null default '', `recipient_email` text not null default '', `recipient_id` varchar(32) not null default '0', `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 '')�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`)qV?�indexemails_sent_success_indexemailsCREATE INDEX `emails_sent_success_index` on `emails` (`sent_success`)hU9� indexemails_sent_time_indexemailsCREATE INDEX `emails_sent_time_index` on `emails` (`sent_time`)�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)t�Etableemailsemails CREATE TABLE `emails` (`id` integer not null primary key autoincrement, `recipient_name`� 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)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`)











2021-08-22 11:28:15 +01:00