<?xml version="1.0"?> <!-- $Id: db.table.picture.xml 2305 2004-02-20 09:34:51Z cvs_iezzi $ --> <table name="picture" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../lib/sourdough/Sd_Db/settings/table.xsd"> <fields> <field> <primarykey>true</primarykey> <autoincrement>true</autoincrement> <name>id</name> <type>piga_id</type> </field> <field> <name>albumid</name> <type>piga_id</type> <description>album the picture belongs to</description> </field> <field> <name>filename</name> <type>piga_filedir</type> </field> <field> <name>descr</name> <type>text</type> <description>picture description</description> </field> <field> <name>boolshow</name> <type>boolean</type> <description>Flag to show/hide picture</description> </field> <field> <name>rotatedegree</name> <type>int</type> <description>Rotation of original image</description> </field> <field> <name>exif_datetimeoriginal</name> <type>piga_epoch</type> <description>date/time when picture was recorded</description> </field> <field> <name>exif_filesize</name> <type>int</type> <description>file size in bytes</description> </field> <field> <name>exif_width</name> <type>int</type> <description>image width in pixels</description> </field> <field> <name>exif_height</name> <type>int</type> <description>image width in pixels</description> </field> <field> <name>exif_orientation</name> <type>smallint</type> <default>1</default> <description>EXIF orientation tag</description> </field> <field> <name>lastmodified</name> <type>piga_epoch</type> <description>last modification timestamp of original</description> </field> <field> <name>timestamp</name> <type>piga_epoch</type> <description>timestamp when picture has been added to the DB</description> </field> </fields> <indexes> <index> <name>ind_pic1</name> <indexfields> <indexfield> <name>albumid</name> </indexfield> <indexfield> <name>filename</name> </indexfield> </indexfields> </index> </indexes> </table>