Created
March 1, 2022 08:25
-
-
Save chertov/f5bf377f9201024fc440283cf7e34e92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tarantool: '{ git = "https://github.com/chertov/tarantool-module.git", branch = "dev", features=["schema"] }' | |
# tarantool: '{ path = "/Users/user/dev/tarantool-module/tarantool", features=["schema"] }' | |
tarantool_schema: '{ git = "https://github.com/chertov/tarantool-schema.git" }' | |
# dependencies: | |
# bb_proto: '{ path = "./../../../bb_proto", features = ["tnt"] }' | |
spaces: | |
users: | |
engine: 'memtx' | |
is_local: false | |
temporary: false | |
row_type: bb_proto::app::User | |
format: | |
user_id: { is_nullable: false, type: 'string' } | |
login: { is_nullable: false, type: 'string' } | |
email: { is_nullable: false, type: 'string' } | |
display_name: { is_nullable: false, type: 'string' } | |
created_at: { is_nullable: false, type: 'unsigned' } | |
indexes: | |
user_id: { type: 'tree', unique: true, parts: [ { field: 'user_id', is_nullable: false, type: 'string' } ] } | |
login: { type: 'tree', unique: true, parts: [ { field: 'login', is_nullable: false, type: 'string' } ] } | |
email: { type: 'tree', unique: true, parts: [ { field: 'email', is_nullable: false, type: 'string' } ] } | |
created_at: { type: 'tree', unique: false, parts: [ { field: 'created_at', is_nullable: false, type: 'unsigned' } ] } | |
init_data: [ | |
{ user_id: '9e103ef3-73aa-4cc4-acab-810e4d2ff0bd', login: "chertov", email: "[email protected]", created_at: 0, display_name: "Chertov Maxim" }, | |
{ user_id: '6425b094-cc47-4be3-b97b-ac43d2285d71', login: "max", email: "[email protected]", created_at: 0, display_name: "Chertov Maxim" }, | |
{ user_id: '9cd51cf0-9012-fc8f-8d17-8d938e670e48', login: "chertovm", email: "[email protected]", created_at: 0, display_name: "Chertov Maxim" }, | |
{ user_id: '0f3909ab-061b-600e-b768-37abc393bb5c', login: "ch", email: "[email protected]", created_at: 0, display_name: "Ch" }, | |
{ user_id: '5acf026c-502e-1ce5-d719-b349545ea9c0', login: "ch1", email: "[email protected]", created_at: 0, display_name: "CV" }, | |
{ user_id: 'aef4f557-1df1-635d-3a3c-96ed16017944', login: "ch123", email: "[email protected]", created_at: 0, display_name: "qweqe" }, | |
] | |
apps: | |
engine: 'memtx' | |
is_local: false | |
temporary: false | |
format: | |
user_id: { is_nullable: false, type: 'string' } | |
pub_key: { is_nullable: false, type: 'string' } | |
device_name: { is_nullable: false, type: 'string' } | |
crated_at: { is_nullable: false, type: 'unsigned' } | |
last_login: { is_nullable: false, type: 'unsigned' } | |
last_addr: { is_nullable: false, type: 'string' } | |
indexes: | |
user_id_pub_key: { type: 'tree', unique: true, parts: [ | |
{ field: 'user_id', is_nullable: false, type: 'string' }, | |
{ field: 'pub_key', is_nullable: false, type: 'string' } | |
] } | |
user_id: { type: 'tree', unique: false, parts: [ { field: 'user_id', is_nullable: false, type: 'string' } ] } | |
pub_key: { type: 'tree', unique: true, parts: [ { field: 'pub_key', is_nullable: false, type: 'string' } ] } | |
crated_at: { type: 'tree', unique: false, parts: [ { field: 'crated_at', is_nullable: false, type: 'unsigned' } ] } | |
last_login: { type: 'tree', unique: false, parts: [ { field: 'last_login', is_nullable: false, type: 'unsigned' } ] } | |
email_pin: | |
engine: 'memtx' | |
is_local: false | |
temporary: false | |
format: | |
email: { is_nullable: false, type: 'string' } | |
pin: { is_nullable: false, type: 'unsigned' } | |
crated_at: { is_nullable: false, type: 'unsigned' } | |
indexes: | |
email_pin: { type: 'tree', unique: true, parts: [ | |
{ field: 'email', is_nullable: false, type: 'string' }, | |
{ field: 'pin', is_nullable: false, type: 'unsigned' } | |
] } | |
email: { type: 'tree', unique: true, parts: [ { field: 'email', is_nullable: false, type: 'string' } ] } | |
pin: { type: 'tree', unique: true, parts: [ { field: 'pin', is_nullable: false, type: 'unsigned' } ] } | |
crated_at: { type: 'tree', unique: false, parts: [ { field: 'crated_at', is_nullable: false, type: 'unsigned' } ] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment