1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
CREATE TABLE `ta_entreprises` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(255) NOT NULL,
`nom_courrier` varchar(255) DEFAULT NULL,
`adresse` varchar(255) DEFAULT NULL,
`ville` varchar(255) DEFAULT NULL,
`code_postal` varchar(20) DEFAULT NULL,
`tel` varchar(20) DEFAULT NULL,
`fax` varchar(20) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`id_nation` int(11) DEFAULT NULL,
`contact_par` varchar(255) DEFAULT NULL,
`complement` varchar(255) DEFAULT NULL,
`perso` varchar(255) DEFAULT NULL,
`effectif` int(11) DEFAULT NULL,
`site_web` varchar(255) DEFAULT NULL,
`code_ape` varchar(10) DEFAULT NULL,
`contact_stage` varchar(255) DEFAULT NULL,
`type_relation` int(5) DEFAULT NULL,
`infos_relations` text,
`actif` int(1) NOT NULL DEFAULT '1',
`date_creation` int(15) DEFAULT NULL,
`date_suppression` int(15) DEFAULT NULL,
`id_stage` int(11) NOT NULL,
`secteur_activite` varchar(220) NOT NULL,
`groupe` tinyint(1) NOT NULL,
`maitre` tinyint(1) NOT NULL,
`rattach_idgroupe` int(11) NOT NULL COMMENT 'PLUS UTILISE',
`rattach_idmaitre` int(11) NOT NULL,
`prioritaire` tinyint(1) NOT NULL,
`YBTypeEntite` varchar(20) NOT NULL DEFAULT 'Entreprise',
`YBPays` varchar(20) NOT NULL DEFAULT 'France',
PRIMARY KEY (`id`),
KEY `nom` (`nom`),
KEY `id_nation` (`id_nation`),
KEY `actif` (`actif`),
KEY `type_relation` (`type_relation`)
) ENGINE=MyISAM AUTO_INCREMENT=16424 DEFAULT CHARSET=latin1 |