feat(database): update database configuration
Update the database configuration like updating the LastIntrospectionLocalTimestamp and refactoring indexes and keys. This includes adding two new indexes `users_pk` and `users_pk_2`, and corresponding keys. Moreover, the columns' ID have been updated. These changes are done for better database performance and clear structuring. Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
parent
37cfaf4bbd
commit
89d9fc47b2
@ -1033,7 +1033,7 @@ brief\\_05|schema||user_brief05||UPDATE|G</Grants>
|
|||||||
</collation>
|
</collation>
|
||||||
<schema id="324" parent="1" name="brief_05">
|
<schema id="324" parent="1" name="brief_05">
|
||||||
<Current>1</Current>
|
<Current>1</Current>
|
||||||
<LastIntrospectionLocalTimestamp>2024-04-29.10:08:31</LastIntrospectionLocalTimestamp>
|
<LastIntrospectionLocalTimestamp>2024-04-29.10:37:23</LastIntrospectionLocalTimestamp>
|
||||||
<CollationName>latin1_swedish_ci</CollationName>
|
<CollationName>latin1_swedish_ci</CollationName>
|
||||||
</schema>
|
</schema>
|
||||||
<schema id="325" parent="1" name="information_schema">
|
<schema id="325" parent="1" name="information_schema">
|
||||||
@ -1250,54 +1250,70 @@ brief\\_05|schema||user_brief05||UPDATE|G</Grants>
|
|||||||
<Type>btree</Type>
|
<Type>btree</Type>
|
||||||
<Unique>1</Unique>
|
<Unique>1</Unique>
|
||||||
</index>
|
</index>
|
||||||
<index id="376" parent="331" name="username">
|
<index id="376" parent="331" name="users_pk">
|
||||||
<ColNames>username</ColNames>
|
|
||||||
<Type>btree</Type>
|
|
||||||
<Unique>1</Unique>
|
|
||||||
</index>
|
|
||||||
<index id="377" parent="331" name="email">
|
|
||||||
<ColNames>email</ColNames>
|
|
||||||
<Type>btree</Type>
|
|
||||||
<Unique>1</Unique>
|
|
||||||
</index>
|
|
||||||
<key id="378" parent="331" name="PRIMARY">
|
|
||||||
<NameSurrogate>1</NameSurrogate>
|
|
||||||
<Primary>1</Primary>
|
|
||||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
|
||||||
</key>
|
|
||||||
<key id="379" parent="331" name="username">
|
|
||||||
<UnderlyingIndexName>username</UnderlyingIndexName>
|
|
||||||
</key>
|
|
||||||
<key id="380" parent="331" name="email">
|
|
||||||
<UnderlyingIndexName>email</UnderlyingIndexName>
|
|
||||||
</key>
|
|
||||||
<column id="381" parent="332" name="id">
|
|
||||||
<DasType>varchar(36)|0s</DasType>
|
|
||||||
<NotNull>1</NotNull>
|
|
||||||
<Position>1</Position>
|
|
||||||
</column>
|
|
||||||
<column id="382" parent="332" name="plate_number">
|
|
||||||
<DasType>varchar(8)|0s</DasType>
|
|
||||||
<Position>2</Position>
|
|
||||||
</column>
|
|
||||||
<column id="383" parent="332" name="model_id">
|
|
||||||
<DasType>varchar(36)|0s</DasType>
|
|
||||||
<Position>3</Position>
|
|
||||||
</column>
|
|
||||||
<column id="384" parent="332" name="odometer">
|
|
||||||
<DasType>int(11)|0s</DasType>
|
|
||||||
<Position>4</Position>
|
|
||||||
</column>
|
|
||||||
<column id="385" parent="332" name="health_state">
|
|
||||||
<DasType>float|0s</DasType>
|
|
||||||
<Position>5</Position>
|
|
||||||
</column>
|
|
||||||
<index id="386" parent="332" name="PRIMARY">
|
|
||||||
<ColNames>id</ColNames>
|
<ColNames>id</ColNames>
|
||||||
<Type>btree</Type>
|
<Type>btree</Type>
|
||||||
<Unique>1</Unique>
|
<Unique>1</Unique>
|
||||||
</index>
|
</index>
|
||||||
<key id="387" parent="332" name="PRIMARY">
|
<index id="377" parent="331" name="users_pk_2">
|
||||||
|
<ColNames>id</ColNames>
|
||||||
|
<Type>btree</Type>
|
||||||
|
<Unique>1</Unique>
|
||||||
|
</index>
|
||||||
|
<index id="378" parent="331" name="username">
|
||||||
|
<ColNames>username</ColNames>
|
||||||
|
<Type>btree</Type>
|
||||||
|
<Unique>1</Unique>
|
||||||
|
</index>
|
||||||
|
<index id="379" parent="331" name="email">
|
||||||
|
<ColNames>email</ColNames>
|
||||||
|
<Type>btree</Type>
|
||||||
|
<Unique>1</Unique>
|
||||||
|
</index>
|
||||||
|
<key id="380" parent="331" name="PRIMARY">
|
||||||
|
<NameSurrogate>1</NameSurrogate>
|
||||||
|
<Primary>1</Primary>
|
||||||
|
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||||
|
</key>
|
||||||
|
<key id="381" parent="331" name="users_pk">
|
||||||
|
<UnderlyingIndexName>users_pk</UnderlyingIndexName>
|
||||||
|
</key>
|
||||||
|
<key id="382" parent="331" name="users_pk_2">
|
||||||
|
<UnderlyingIndexName>users_pk_2</UnderlyingIndexName>
|
||||||
|
</key>
|
||||||
|
<key id="383" parent="331" name="username">
|
||||||
|
<UnderlyingIndexName>username</UnderlyingIndexName>
|
||||||
|
</key>
|
||||||
|
<key id="384" parent="331" name="email">
|
||||||
|
<UnderlyingIndexName>email</UnderlyingIndexName>
|
||||||
|
</key>
|
||||||
|
<column id="385" parent="332" name="id">
|
||||||
|
<DasType>varchar(36)|0s</DasType>
|
||||||
|
<NotNull>1</NotNull>
|
||||||
|
<Position>1</Position>
|
||||||
|
</column>
|
||||||
|
<column id="386" parent="332" name="plate_number">
|
||||||
|
<DasType>varchar(8)|0s</DasType>
|
||||||
|
<Position>2</Position>
|
||||||
|
</column>
|
||||||
|
<column id="387" parent="332" name="model_id">
|
||||||
|
<DasType>varchar(36)|0s</DasType>
|
||||||
|
<Position>3</Position>
|
||||||
|
</column>
|
||||||
|
<column id="388" parent="332" name="odometer">
|
||||||
|
<DasType>int(11)|0s</DasType>
|
||||||
|
<Position>4</Position>
|
||||||
|
</column>
|
||||||
|
<column id="389" parent="332" name="health_state">
|
||||||
|
<DasType>float|0s</DasType>
|
||||||
|
<Position>5</Position>
|
||||||
|
</column>
|
||||||
|
<index id="390" parent="332" name="PRIMARY">
|
||||||
|
<ColNames>id</ColNames>
|
||||||
|
<Type>btree</Type>
|
||||||
|
<Unique>1</Unique>
|
||||||
|
</index>
|
||||||
|
<key id="391" parent="332" name="PRIMARY">
|
||||||
<NameSurrogate>1</NameSurrogate>
|
<NameSurrogate>1</NameSurrogate>
|
||||||
<Primary>1</Primary>
|
<Primary>1</Primary>
|
||||||
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
<UnderlyingIndexName>PRIMARY</UnderlyingIndexName>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user